Spring Boot项目部署到Linux服务器运行报错怎么解决


Spring BootLinuxSpring BootLinuxSpring BootLinux
Springboot A BCaused by: java.lang.ClassNotFoundException

C B
1 C /app/C-service/lib jar
2 C /app/C-service/C-service.jar/META-INF/MANIFEST.MF

免费云主机域名1 A /app/A-service/lib jar
2 A /app/A-service/A-service.jar/META-INF/MANIFEST.MF
MANIFEST.MF jar jar SNAPSHOT jar Caused by: java.lang.ClassNotFoundException

1.deploy SNAPSHOT 1.0.0-SNAPSHOT jarB-api-1.0.0-20191224.024308-5.jar
2. A mvn clean package -Dmaven.test.skip=trueIDEA jar jar A-service.zip
3. A MANIFEST.MF A-service.zip lib/ jar
4. C A A assembly.xml ${artifact.artifactId}-${artifact.baseVersion}.${artifact.extension}
5. jar MANIFEST.MF jaroutputFileNameMappingfalse Service Application.java pom.xml
6.
1${artifact.artifactId}-${artifact.baseVersion}.${artifact.extension}lib/ jar B-api-1.0.0-20191224.024308-5.jarjarB-api-1.0.0-SNAPSHOT.jar
2false MANIFEST.MF lib/ jar xxx-SNAPSHOT false trueB-api-1.0.0-20191224.024308-5.jarjarB-api-1.0.0-SNAPSHOT.jar

1 C outputFileNameMappinguseUniqueVersions lib/ jar MANIFEST.MF jar
2 AoutputFileNameMappinguseUniqueVersions

jar outputFileNameMappinguseUniqueVersions
1.assembly.xml ${artifact.artifactId}-${artifact.baseVersion}.${artifact.extension}
2. Application.java pom.xml falseSpring BootLinux

相关推荐: SpringBoot项目如何打成War布署在Tomcat

这篇文章主要为大家展示了“SpringBoot项目如何打成War布署在Tomcat”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“SpringBoot项目如何打成War布署在Tomcat”这篇文章吧。第一步:声名打成…

免责声明:本站发布的图片视频文字,以转载和分享为主,文章观点不代表本站立场,本站不承担相关法律责任;如果涉及侵权请联系邮箱:360163164@qq.com举报,并提供相关证据,经查实将立刻删除涉嫌侵权内容。

(0)
打赏 微信扫一扫 微信扫一扫
上一篇 09/17 21:47
下一篇 09/17 21:48

相关推荐