Springboot+thymeleaf项目报错 template might not exist or might not be accessible by any of the configure
报错代码如下:
@GetMapping("/chat/lt")
public String tochat(){
return "/chat/ltzy";
}
application.xml配置如下:
thymeleaf:
suffix: .html
prefix:
classpath: /templates/
cache: false
项目在IDEA上运行,可正常跳转到ltzy.html。但是我在cmd用mvn compile pack
原创
2022-02-11 15:49:47 ·
798 阅读 ·
0 评论