想要实现扫描实体类,自动建表的功能,但是在xml文件中配置packgesToScan属性的时候,程序就报错?求大神指点。
报错:
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 'packgesToScan' of bean class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: Bean property 'packgesToScan' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
我想知道,是不是jar包有问题?该怎么解决?