org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userFactory' defined in class path resource [application.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'param1' of bean class [com.cskaoyan.factory.UserFactoryBean]: Bean property 'param1' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
没有加lombok注解,没有可调用的set方法,所以报错,加上@Data注解就好了。
org.springframework.beans.factory.BeanCreationException解决办法
最新推荐文章于 2022-06-09 21:13:59 发布