项目在本地tomcat上运行没有问题,
打成jar包后运行报错:
Error resolving template "/rule/list", template might not exist or might not be accessible by any of the configured Template Resolvers
解决方案1:
return时去掉/即可
解决方案2:
配置中添加 spring.thymeleaf.prefix=classpath:/templates