SpringBoot使用thymeleaf模板引擎引起的模板視圖解析錯誤


1 Whitelabel Error Page
2 This application has no explicit mapping for /error, so you are seeing this as a fallback.
3 
4 Thu Sep 19 16:54:45 CST 2019
5 There was an unexpected error (type=Internal Server Error, status=500).
6 An error happened during template parsing (template: "class path resource [templates/emp/list.html]")

template: “class path resource [templates/emp/list.html]”
模板解析過程中出錯(模板:“類路徑資源[templates/emp/list.html]”)

我一開始的想法就是錯誤的,這個問題和模板引擎本身毫無關系,回歸原題,這個的錯誤是thymeleaf 引入公共代碼片段出錯了,導致連這個視圖都不會解析出來

引入公共代碼片段請參考這個鏈接:https://blog.csdn.net/qq_37638061/article/details/83276472


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM