Error creating bean with name 'CommonDaoImpl' defined in file [D:\eclipse\workspace\EquipmentShareSys\WebRoot\WEB-INF\spring-config.xml]: Error setting property values; //nested exception is org.springframework.beans.PropertyAccessExceptionsException:

解决方案 »

  1.   

    Failed to convert property value of type [$Proxy0] to required type [net.sf.hibernate.SessionFactory] for property 'sessionFactory']
    PropertyAccessExceptionsException (1 errors)
    配置文件怎么写的?
    相关代码。
      

  2.   

    查查配置文件中的property 的设置及相应文件中的SET方法是不是相匹配.
    我遇到类似的问题是:
    <bean id="xxx1Service" class="XXXX.xx.xx.xx.xxx1ServiceImpl">
     <property name="yyy1Proc">
      <ref bean="orderSearchProc"/>
     </property>结果是XXXX.xx.xx.xx.xxx1ServiceImpl中的
    setyyy1Proc() method 不一致.
    你找下某个类中的SET方法吧.
      

  3.   

    查查配置文件中的property 的设置及相应文件中的SET方法是不是相匹配.
    我遇到类似的问题是:
    <bean id="xxx1Service" class="XXXX.xx.xx.xx.xxx1ServiceImpl">
     <property name="yyy1Proc">
      <ref bean="yyy1Proc"/>
     </property>结果是XXXX.xx.xx.xx.xxx1ServiceImpl中的
    setyyy1Proc() method 不一致.
    你找下某个类中的SET方法吧.