亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

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

導入org.apache.cxf無法解析Java

導入org.apache.cxf無法解析Java

幕布斯6054654 2023-12-30 16:19:29
我是 Java/SpringBoot 新手。我剛剛用 Gradle 創建了一個 SpringBoot 項目,但無法使用:import org.apache.cxf.configuration.jsse.TLSClientParameters;import org.apache.cxf.endpoint.Client;import org.apache.cxf.frontend.ClientProxy;import org.apache.cxf.transport.http.HTTPConduit;我嘗試使用 gradle 導入 apache cxf:compile group: 'org.apache.cxf', name: 'cxf', version: '3.3.3', ext: 'pom'在 build.gradle 中,然后:使用 VSCode 自動構建手動構建gradlew build然后我還是無法使用org.apache.cxf我缺少什么?
查看完整描述

1 回答

?
紅顏莎娜

TA貢獻1842條經驗 獲得超13個贊

根據我所看到的,依賴關系應該是:


    <dependency>  

        <groupId>org.apache.cxf</groupId>  

        <artifactId>cxf-rt-frontend-jaxws</artifactId>  

        <version>x.x.x</version>  

    </dependency>  

    <dependency>  

        <groupId>org.apache.cxf</groupId>  

        <artifactId>cxf-rt-transports-http</artifactId>  

        <version>x.x.x</version>

    </dependency>  

或者在 Gradle 語法中:


dependencies {


    compile 'org.apache.cxf:cxf-rt-frontend-jaxws:x.x.x'

    compile 'org.apache.cxf:cxf-rt-transports-http:x.x.x'


查看完整回答
反對 回復 2023-12-30
  • 1 回答
  • 0 關注
  • 250 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號