关于ssh框架的/
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [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?麻烦大神帮我看看
--------------------编程问答-------------------- packagesToScan的setter,getter方法是不是名字写错了 --------------------编程问答-------------------- 我的这个是用来扫描pojo实体类的/里面get/set都是自动生成的... --------------------编程问答-------------------- 配置文件发出来看下 --------------------编程问答-------------------- -<bean class="org.springframework.orm.hibernate3.LocalSessionFactoryBean" id="sessionFactory">-
<property name="dataSource">
<ref bean="dataSource"/>
</property>-
<property name="hibernateProperties">-
<props><prop key="hibernate.dialect"> org.hibernate.dialect.SQLServerDialect </prop><prop key="hibernate.show_sql">true</prop></props></property>
<!--ORM映射,扫描POJO -->
-<property name="packagesToScan">-<list><value>com.hrm.pojo</value></list></property></bean> --------------------编程问答-------------------- spring版本是多少的,是不是版本低了,没有packagesToScan --------------------编程问答-------------------- 这个环境是我搭建的...刚开始测试的时候是没问题的
补充:Java , Java EE