搭建springBoot的时候在通过Controller访问html页面,使用thymeleaf的时候。启动项目报错Error resolving template "xxx", template might not exist or might not be accessible...
我自己的解决办法如下:
我在配置文件里配置了一个访问路径:
注:原因就是不需要你自己再一次的指定模板访问路径,直接删了即可。特此记录,望有帮助。
搭建springBoot的时候在通过Controller访问html页面,使用thymeleaf的时候。启动项目报错Error resolving template "xxx", template might not exist or might not be accessible...
我自己的解决办法如下:
我在配置文件里配置了一个访问路径:
注:原因就是不需要你自己再一次的指定模板访问路径,直接删了即可。特此记录,望有帮助。