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

解决方案:
(1)配置中添加  spring.thymeleaf.prefix=classpath:/templates
(2)指向模板的路径 不加 /

猜你喜欢

转载自www.cnblogs.com/gqymy/p/9216710.html
今日推荐