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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

Spring Boot 應(yīng)用程序在 IntelliJ 中啟動(dòng)失敗

Spring Boot 應(yīng)用程序在 IntelliJ 中啟動(dòng)失敗

qq_笑_17 2023-08-16 10:10:02
我以前有 Spring Boot 應(yīng)用程序,我曾經(jīng)在 Eclipse 中使用過它在那里工作,最近切換到 IntelliJ,在 IntelliJ 應(yīng)用程序中沒有盯著,在這里我在啟動(dòng)時(shí)共享日志  .   ____          _            __ _ _ /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/  ___)| |_)| | | | | || (_| |  ) ) ) )  '  |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot ::        (v2.0.0.RELEASE)2019-09-20 13:34:56.609  INFO 30977 --- [  restartedMain] com.kn.Application                       : Starting Application on Dhanu-MAC.local with PID 30977 (/Applications/Data/RT/20190815_source_prod/2_etn_backend/target/classes started by dhanu in /Applications/Data/RT/20190815_source_prod/2_etn_backend)2019-09-20 13:34:56.621  INFO 30977 --- [  restartedMain] com.kn.Application                       : The following profiles are active: devWARNING: An illegal reflective access operation has occurredWARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/Users/dhanu/.m2/repository/org/codehaus/groovy/groovy/2.4.13/groovy-2.4.13.jar) to method java.lang.Object.finalize()WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClassWARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operationsWARNING: All illegal access operations will be denied in a future release正如我在日志中看到的,它已成功與數(shù)據(jù)庫連接,但 tomcat 停止了,沒有顯示任何原因我在這里呆了很長(zhǎng)一段時(shí)間,有人可以幫忙嗎?
查看完整描述

1 回答

?
白板的微信

TA貢獻(xiàn)1883條經(jīng)驗(yàn) 獲得超3個(gè)贊

嵌套異常是java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlElement


簡(jiǎn)而言之:隨著 Java 9 的發(fā)布,所需的依賴項(xiàng)已從 JDK 中刪除。如果您使用 Java 8 JDK 啟動(dòng)應(yīng)用程序,則會(huì)提供依賴項(xiàng)并且您的應(yīng)用程序可以正常運(yùn)行。如果您使用 Java 9 JDK 或更高版本啟動(dòng)應(yīng)用程序,則依賴項(xiàng)將不再存在并且無法啟動(dòng)。

修復(fù)此問題的正確解決方案是將所需的依賴項(xiàng)添加到您的項(xiàng)目中:

dependencies {

? ? // JAX-B dependencies for JDK 9+

? ? implementation "javax.xml.bind:jaxb-api:2.2.11"

? ? implementation "com.sun.xml.bind:jaxb-core:2.2.11"

? ? implementation "com.sun.xml.bind:jaxb-impl:2.2.11"

? ? implementation "javax.activation:activation:1.1.1"

}

Maven 依賴項(xiàng)


<!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api -->

? ? ? ? <dependency>

? ? ? ? ? ? <groupId>javax.xml.bind</groupId>

? ? ? ? ? ? <artifactId>jaxb-api</artifactId>

? ? ? ? ? ? <version>2.2.11</version>

? ? ? ? </dependency>

? ? ? ? <!-- https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-core -->

? ? ? ? <dependency>

? ? ? ? ? ? <groupId>com.sun.xml.bind</groupId>

? ? ? ? ? ? <artifactId>jaxb-core</artifactId>

? ? ? ? ? ? <version>2.2.11</version>

? ? ? ? </dependency>

? ? ? ? <!-- https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-impl -->

? ? ? ? <dependency>

? ? ? ? ? ? <groupId>com.sun.xml.bind</groupId>

? ? ? ? ? ? <artifactId>jaxb-impl</artifactId>

? ? ? ? ? ? <version>2.2.11</version>

? ? ? ? </dependency>

? ? ? ? <!-- https://mvnrepository.com/artifact/javax.activation/activation -->

? ? ? ? <dependency>

? ? ? ? ? ? <groupId>javax.activation</groupId>

? ? ? ? ? ? <artifactId>activation</artifactId>

? ? ? ? ? ? <version>1.1.1</version>

? ? ? ? </dependency>


查看完整回答
反對(duì) 回復(fù) 2023-08-16
  • 1 回答
  • 0 關(guān)注
  • 171 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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