springboot项目多个模块 只打包changfeng-screen这个模块
1在资源管理器中进入 这个模块所在文件夹
2cmd mvn clean package打包
3找到jar包 java -jar xxx.jar 运行jar包
################################################################################
记录一次错误:在idea中运行不报错 打成jar包 地址栏访问视图解析器报错 “
This application has no explicit mapping for /error, so you are seeing this as a fallback.
原因:
打成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