Spring Boot 將jar包釋出方式改為War包
Spring Boot 將jar包釋出方式改為War包
二、問題總結 參考課程 Spring Boot 熱部署
1.修改pom.xml中的jar
com.imooc
嚴重: The ServletContentInitializer [# Licensed to the Apache Software Foundatio
n (ASF) under one or more] could not be created
java.lang.ClassNotFoundException: # Licensed to the Apache Software Foundation (
ASF) under one or more
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1713)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1558)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.apache.catalina.startup.ContextConfig.getServletContainerInitiali
zer(ContextConfig.java:1659)
at org.apache.catalina.startup.ContextConfig.processServletContainerInit
ializers(ContextConfig.java:1569)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.jav
a:1277)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfi
g.java:878)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:369)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBa
se.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContex
t.java:5269)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:87
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:
1655)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:51
1)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:617)
at java.lang.Thread.run(Thread.java:745)
解決方案1:
提高 tomcat版本
解決方案2:
降低Spring Boot版本,並配置tomcat版本,但是這個會帶來其他一些錯誤,需要逐個解決。
UTF-8 UTF-8 1.8 7.0.73 <!--配置這裡-->
相關文章
- jar包、war包和ear包的介紹與區別JAR
- jar包和war包的介紹與區別JAR
- spring boot 打war包後沒有配置檔案Spring Boot
- jar包啟動方式JAR
- 釋出jar包到maven中央倉庫JARMaven
- 如何將JAR包釋出到Maven中央倉庫?JARMaven
- 06、使用Gradle構建的專案如何打jar包和war包GradleJAR
- Springboot 引入本地 jar 包方式Spring BootJAR
- 三分鐘把spring boot打成war包部署到tomcat中Spring BootTomcat
- springboot 整合外部tomcat war包部署方式Spring BootTomcat
- 行業分析專家Redmonk認為打成Jar包的軟體釋出模式將淘汰行業JAR模式
- Spring Boot啟動後讀取jar包內部檔案Spring BootJAR
- java打jar包的maven方式JavaJARMaven
- SpringBoot打jar包或war包獲取不到資原始檔解決辦法Spring BootJAR
- 精盡Spring Boot原始碼分析 - Jar 包的啟動實現Spring Boot原始碼JAR
- jar包JAR
- jenkins將打包的jar包部署到nexusJenkinsJAR
- 安裝 jar包為windows服務JARWindows
- Spring Boot 2.1.0釋出Spring Boot
- 芋道Springboot打war包Spring Boot
- java修改jar包JavaJAR
- idea打包jar包IdeaJAR
- centos 部署jar包CentOSJAR
- linux 部署jar包LinuxJAR
- java-jar啟動jar包JavaJAR
- 釋出npm包流程NPM
- 深入Jar包:Gradle構建可執行jar包與訪問jar包中資料夾與檔案JARGradle
- Spring Boot 2.6.1 重磅釋出!Spring Boot
- Spring Boot 3.0正式釋出Spring Boot
- 讀取 jar 包中巢狀的 jar 包內容的方法JAR巢狀
- springboot專案打war包流程Spring Boot
- IDEA 匯入 ***.jar包IdeaJAR
- Java Jar 包加密 -- XJarJavaJAR加密
- IDEA匯入jar包IdeaJAR
- java中常用jar包JavaJAR
- Maven引入本地jar包MavenJAR
- Spring Boot,Spring Cloud專案打成Jar包時,無法讀取自定義檔案的解決辦法Spring BootCloudJAR
- linux 啟動jar包:在 Linux 上啟動 Java jar 包的方法LinuxJARJava