ユーザーのプロフィール写真に対応するビューに動的な画像を表示したい。
私のコントローラーには次のものがあります:
render(..,userImage);
私の見解では、私はこれを行います
<img src="${'../public/images/'+userImage}" alt="logo" id="logo" class="center"/>
私のローカルマシンでは、私が使用しているようにすべてが機能しlocalhost:9005
ます。テスト マシンにデプロイすると、使用する URLhttp://testserver/AdminConsole
はhttp://testserver/public/images/userJohn1234.jpg
これは playframework 1.2.4 では許可されていませんか?