开发OA系统 SSH配置

邓喜 发布于 2012/07/08 21:55
阅读 875
收藏 0
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.cn.oa.model.Organization' defined in file [C:\apache-tomcat-5.5.17\webapps\oa_01\WEB-INF\classes\applicationContext-beans.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'sessionFactory' of bean class [com.cn.oa.model.Organization]: Bean property 'sessionFactory' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
Caused by:
org.springframework.beans.NotWritablePropertyException: Invalid property 'sessionFactory' of bean class [com.cn.oa.model.Organization]: Bean property 'sessionFactory' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
 at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:751)
 at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:608)
加载中
0
K-X
K-X
不知道你要问什么,Log里面来看,应该配置文件有问题,看看 com.cn.oa.model.Organization和你的配置文件里面的对应关系是否正确。
0
邓喜
邓喜

配置是有问题,但我就是没找哪里的。烦躁的

但是,谢谢你的提醒

0
vitou
vitou
说你的 com.cn.oa.model.Organization 错误 的设置属性 values, sessionFactory 没有geterr setter
返回顶部
顶部