thymeleaf在开发环境正常,但用jar运行时报错 Error resolving template template might not exist or might not be accessible

解决方案:
(1)配置中添加  spring.thymeleaf.prefix=classpath:/templates
(2)指向模板的路径 不加 /
posted @ 2018-06-23 11:21  沟渠映明月  阅读(8752)  评论(0编辑  收藏  举报