2017-09-11 24 views
0

頁面無法正確顯示,似乎thymeleaf與spring-boot集成時導入錯誤的靜態文件。爲什麼thymeleaf導入錯誤的靜態文件

enter image description here

enter image description here

enter image description here

+0

對於像CSS或Javascript這樣的靜態文件,放在/ src/main/resources/static/ –

+0

你有其他的配置是否覆蓋了Thymeleaf的默認位置? –

回答

0

解決了,因爲我在配置應用程序文件的server.servletPath。所以將其更改爲server.contextPath。

相關問題