org.springframework.orm.hibernate3.LocalSessionFactoryBean 问题
之前使用org.springframework.orm.hibernate4.LocalSessionFactoryBean没有什么问题,后来我把hibernate4换到...
之前使用org.springframework.orm.hibernate4.LocalSessionFactoryBean没有什么问题,后来我把hibernate 4换到了版本3,使用org.springframework.orm.hibernate3.LocalSessionFactoryBean,结果就出现:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\tomcat\webapps\oa\WEB-INF\classes\spring\applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'packagesToScan' of bean class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: Bean property 'packagesToScan' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
的异常,大家帮我分析下是什么问题吧 展开
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\tomcat\webapps\oa\WEB-INF\classes\spring\applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'packagesToScan' of bean class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: Bean property 'packagesToScan' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
的异常,大家帮我分析下是什么问题吧 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询