该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
spring3.0 实体类使用的注解 扫描实体类报错了求大神解决呀 谢谢了
报错信息
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'packagesToScan' of bean class [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean]: 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?
application.xml配置文件 就是那个扫描实体类报错 不知道那里问题 求解呀 谢谢了
===============
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
classpath:jdbc.properties
${jdbc.driver}
${jdbc.url}
${jdbc.username}
${jdbc.userpwd}
10
true