0
点赞
收藏
分享

微信扫一扫

142-template might not exist or might not be access by any of the configured

springboot后台服务,一直报错:

template might not exist or might not be access by any of the configured Template Resolvers

解决:
报这个错的前提是在springboot的项目中使用了thymeleaf模版或freemarker模版。 然后原因一般有二:
1.真的没有这个模版文件,或是模版文件路径不正确。
2.在非模版页面的请求中没有使用@RestController或@ResponseBody注解,或是反过来,在模版页面的请求中使用了@RestController或@ResponseBody注解

举报

相关推荐

0 条评论