第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

使用 Maven 構(gòu)建的 Java Spring Boot Web App(hello world)

使用 Maven 構(gòu)建的 Java Spring Boot Web App(hello world)

猛跑小豬 2021-11-17 10:38:56
我正在嘗試使用 maven 運行一個新的 Java Spring Web 應(yīng)用程序構(gòu)建并部署到 Tomcat。我在 SO 上發(fā)現(xiàn)了大量帶有類似錯誤消息的問題,但沒有任何答案有幫助。這是一個課堂作業(yè),但是我什至無法啟動,因為我無法啟動我的 tomcat 服務(wù)器。這是我的日志: :: Spring Boot ::        (v2.0.3.RELEASE)2018-10-13 22:30:45.669  INFO 14840 --- [           main] com.store.app.Application                : 2018-10-13 22:30:45.672  INFO 14840 --- [           main] com.store.app.Application                : No active profile set, falling back to default profiles: default2018-10-13 22:30:45.778  INFO 14840 --- [           main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@4fe767f3: startup date [Sat Oct 13 22:30:45 EDT 2018]; root of context hierarchy2018-10-13 22:30:47.046  INFO 14840 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)2018-10-13 22:30:47.062  INFO 14840 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]2018-10-13 22:30:47.063  INFO 14840 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/9.0.12pom.xml 中沒有 tomcat 版本的縮短錯誤:ERROR 15272 --- [cat-startStop-1] org.apache.catalina.core.ContainerBase   : A child container failed during startjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]]    at java.util.concurrent.FutureTask.report(FutureTask.java:122) [na:1.8.0_161]    at java.util.concurrent.FutureTask.get(FutureTask.java:192) [na:1.8.0_161]    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:941) ~[tomcat-embed-core-8.5.31.jar:8.5.31]如您所見,它無法啟動嵌入式 tomcat 組件。這是我的相關(guān)文件。
查看完整描述

2 回答

?
慕哥9229398

TA貢獻1877條經(jīng)驗 獲得超6個贊

<tomcat.version>9.0.12</tomcat.version>從 pom.xml 中刪除并嘗試。


查看完整回答
反對 回復(fù) 2021-11-17
?
慕村225694

TA貢獻1880條經(jīng)驗 獲得超4個贊

添加tomcat依賴以部署war..


<dependency>

  <groupId>org.springframework.boot</groupId>

  <artifactId>spring-boot-starter-tomcat</artifactId>

  <scope>provided</scope>

</dependency>

<tomcat.version>9.0.12</tomcat.version>不需要刪除。


通過運行清理您的項目 mvn clean install


如果仍然存在沖突的嵌入式 tomcat jar 問題,那么也從 web 中排除 tomcat。


 <dependency>

        <groupId>org.springframework.boot</groupId>

        <artifactId>spring-boot-starter-web</artifactId>

        <exclusions>

            <exclusion>

                <groupId>org.springframework.boot</groupId>

                <artifactId>spring-boot-starter-tomcat</artifactId>

            </exclusion>

        </exclusions>

    </dependency>


查看完整回答
反對 回復(fù) 2021-11-17
  • 2 回答
  • 0 關(guān)注
  • 169 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號