cannot convert value of type ‘org.codehaus.xfire.spring.editors.ServiceFactoryEditor
生活随笔
收集整理的這篇文章主要介紹了
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" value="org.codehaus.xfire.spring.editors.ServiceFactoryEditor"></entry>
。。。。
調整完畢后,點擊左上角文件-保存
點擊右上角文件-x號關閉此頁面
確定
完畢!!!
總結
以上是生活随笔為你收集整理的cannot convert value of type ‘org.codehaus.xfire.spring.editors.ServiceFactoryEditor的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: docker Harbor2.3.4 h
- 下一篇: hadoop 下载