日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

cannot convert value of type ‘org.codehaus.xfire.spring.editors.ServiceFactoryEditor

發布時間:2024/9/27 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 cannot convert value of type ‘org.codehaus.xfire.spring.editors.ServiceFactoryEditor 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

文章目錄

          • 一、分析定位
            • 1.異常現象
            • 2. 分析定位
          • 二、解決方案
            • 2.1.找坐標
            • 2.3. 找jar包
            • 2.3. 打開jar包
            • 2.4. 找目錄
            • 2.5. 編輯customEditors.xml

一、分析定位
1.異常現象

cannot convert value of type ‘org.codehaus.xfire.spring.editors.ServiceFactoryEditor

2. 分析定位

原因是Spring4.0和xfire1.2.6有版本沖突

二、解決方案
2.1.找坐標

找到xfire-spring-1.2.6.jar包的maven坐標

<dependency><groupId>org.codehaus.xfire</groupId><artifactId>xfire-all</artifactId><version>1.2.6</version></dependency>
2.3. 找jar包

在本地倉庫中根據maven坐標,找xfire-spring-1.2.6.jar

2.3. 打開jar包

利用好壓打開

2.4. 找目錄

進入xfire-all-1.2.6.jar\org\codehaus\xfire\spring文件夾下面

2.5. 編輯customEditors.xml

修改xfire-spring-1.2.6.jar中的org/codehaus/xfire/spring/customEditors.xml文件,將< map>< /map>中的內容做一下調整,替換成下面的內容

原文

<entry key="org.codehaus.xfire.service.ServiceFactory"><bean class="org.codehaus.xfire.spring.editors.ServiceFactoryEditor"><property name="transportManager" ref="xfire.transportManager" /></bean></entry>

替換成

<entry key="org.codehaus.xfire.service.ServiceFactory" value="org.codehaus.xfire.spring.editors.ServiceFactoryEditor"></entry>


。。。。
調整完畢后,點擊左上角文件-保存

點擊右上角文件-x號關閉此頁面

確定

完畢!!!

總結

以上是生活随笔為你收集整理的cannot convert value of type ‘org.codehaus.xfire.spring.editors.ServiceFactoryEditor的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。