![](/img/trans.png)
[英]Spring boot Thymeleaf and angularjs 1 - angularjs http request to spring controller not binding in thymeleaf view
[英]How to use angular two way binding tag in spring boot Thymeleaf
我在json文件中定義了我的圖像,如下所示
certLogoURL:“/ img / ocjp.gif”
我試圖在我的百里香模板中顯示這個
<img th:src="@{ {{certificate.certLogoURL}} }" > </img>
圖片未顯示在我的網頁中。
當我檢查網頁時,它會被轉換成
<img src="/img/ocjp.gif">
如果我將值硬編碼為
<img th:src="@{/img/ocjp.gif}"> </img>
圖像正常顯示。
你能幫我解決這個問題嗎?
可能是不好的路徑,請查看2.4中的http://www.thymeleaf.org/doc/articles/standarddialect5minutes.html 。 鏈接(URL)表達式
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.