Play アプリケーション用にいくつかの URL を構成する必要があるため、次の URL に追加しましたapplication.conf
。
application.url="http://www.mydomain.com"
application.url.images="http://www.anotherdomain.com"
application.url.images.logo="${application.url.images}/logo.png"
...
以下は、上記のエントリにアクセスするためにビューで使用するコードです。
@(title: String)
@import play.api.Play.current
<!DOCTYPE html>
<html>
...
<img src="@{ currrent.configuration.getString("application.url.images.logo") }" />
...
</html>
ええと...アプリケーションを実行するたびに、次のエラーメッセージが常に表示されるので、私は夢中になっています:
/home/j3d/Projects/test-app/conf/application.conf: 14-19: application.url.images.logo has type OBJECT rather than STRING
何か案が?何か不足していますか?それともバグですか?
どうもありがとうございました。