原文:springboot thymeleaf 打包成jar包后报错 template might not exist or might not be accessible by any of the configured Template Resolvers

解决方案: 改成 Controller 写法 参考: https: blog.csdn.net qq article details https: www.cnblogs.com kinome p .html ...

2021-03-14 21:28 0 259 推荐指数:

查看详情

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

距离上一篇文章已经很长时间了,最近太忙碌了,今天发布spring boot遇到一个问题,找了好久才找到解决办法,今天贴出来和大家一起分享下,首先看错误信息 spring boot + thymeleaf 是第一次使用并发布,本地代码没有问题,发布到服务器就出现了上面的错误,看到网上 ...

Sat May 06 22:38:00 CST 2017 1 12234
template might not exist or might not be accessible by any of the configured

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

Sat May 09 14:55:00 CST 2020 0 14854
 
粤ICP备18138465号  © 2018-2026 CODEPRJ.COM