ThymeleafでSpringのpropetiesを読み込みたいのですが
下記の通りだとできません。
springとThymeleafに詳しい方、教えていただけないでしょうか。
hoge.propeties
properties
1hoge.fuga=1.1.1
test.html
<script th:src="@{test.js?v=__${@environment.getProperty('hoge.fuga')__}}"></script>
「X」をhoge.propertiesのfuga「1.1.1」の値を代入する。
初歩的な質問ですが、ご返答よろしくお願いします
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/01/30 00:49