spring boot 打成java包 发布

springboot项目多个模块 只打包changfeng-screen这个模块java

1在资源管理器中进入 这个模块所在文件夹spring

2cmd mvn clean package打包springboot

3找到jar包  java -jar xxx.jar  运行jar包app

################################################################################ide

记录一次错误:在idea中运行不报错  打成jar包 地址栏访问视图解析器报错  “this

This application has no explicit mapping for /error, so you are seeing this as a fallback.idea

 

缘由:spa

打成jar包后运行报错:blog

Error resolving template "/rule/list", template might not exist or might not be accessible by any of the configured Template Resolversci

解决方案1:

return时去掉/便可

 

解决方案2:

配置中添加  spring.thymeleaf.prefix=classpath:/templates

相关文章
相关标签/搜索