当在idea开发完成后,打成jar包发布到系统,结果访问页面出现
org.thymeleaf.exceptions.TemplateInputException: Error resolving template “/common/qianduo/youqian.html”, template might not exist or might not be accessible by any of the configured Template Resolvers
解决方法: 在controller层将return后面的路径的第一个斜杠"/" 去掉。即:return "/common/qianduo/youqian" 改成 return "common/qianduo/youqian"
这样jar包运行就不会报错了。