SpringBoot使用thymeleaf模板引擎引起的模板视图解析错误
来源:好兔宠物网
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
因篇幅问题不能全部显示,请点此查看更多更全内容