首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

SSH 声明事物管理 出现异常

2013-11-01 
SSH 声明事物管理 出现错误?1.描述: 小资 ,在ssh 框架,配置声明事物管理后,启动Tomcat 报错!!!Caused by:

SSH 声明事物管理 出现错误?
1.描述:
 小资 ,在ssh 框架,配置声明事物管理后,启动Tomcat 报错!!!

SSH 声明事物管理 出现异常
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy0 implementing service.EmployeeService,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [service.impl.EmployeeServiceImpl] for property 'employeeServiceImpl'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy0 implementing service.EmployeeService,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [service.impl.EmployeeServiceImpl] for property 'employeeServiceImpl': no matching editors or conversion strategy found
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)

2.application.xml



ssh tomcat


[解决办法]
这个错误和你的很像
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [cn.edu.tjuci.ei_oa.biz.baseInfo.impl.OfficeInfoBizImpl] to required type [cn.edu.tjuci.ei_oa.bean.OfficeInfo] for property 'officeInfo'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [cn.edu.tjuci.ei_oa.biz.baseInfo.impl.OfficeInfoBizImpl] to required type [cn.edu.tjuci.ei_oa.bean.OfficeInfo] for property 'officeInfo': no matching editors or conversion strategy found 

错误分析:在程序中,存在一个与Spring中Bean的Id冲突的类,即名称相同,但是类型不同。并且同时存在set和get方法,Spring会自动注入Bean。 
根据需要修改命名,即可 

热点排行