SpringBoot使用thymeleaf模板引擎引起的模板视图解析错误

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Thu Sep 19 16:54:45 CST 2019
There was an unexpected error (type=Internal Server Error, status=500).
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

你可能感兴趣的:(#,SpringBoot,Java)