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?
麻烦大神帮我看看
麻烦大神帮我看看
<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>