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


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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM