日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

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

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

文章目錄

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

一、分析定位
1.異常現(xiàn)象

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

2. 分析定位

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

二、解決方案
2.1.找坐標(biāo)

找到xfire-spring-1.2.6.jar包的maven坐標(biāo)

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

在本地倉庫中根據(jù)maven坐標(biāo),找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>中的內(nèi)容做一下調(diào)整,替換成下面的內(nèi)容

原文

<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>


。。。。
調(diào)整完畢后,點擊左上角文件-保存

點擊右上角文件-x號關(guān)閉此頁面

確定

完畢!!!

總結(jié)

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

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。