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

posted @ 2019-09-20 17:47  Pei你看雪  阅读(2561)  评论(0编辑  收藏  举报