java,
java,
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'historyIntentionService' defined in class path resource [beans/bean-core.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'intentionService' of bean class [com.taobao.salelib.intention.service.HistoryIntentionService]: Bean property 'intentionService' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
使用工具maven,eclipse,本地开发OK,上测试机出现这个问题。
看本地代码确实OK的,有set方法,类型也是对的。
但是为啥测试机上出问题呢?
差异在于,测试机上主干和我的代码进行了合并,而我本地代码纯属分支,那么先把主干swich到分支上,重新执行
mvn eclipse:eclipse
mvn clean install -Dmaven.test.skip=true
完成,重启服务器,问题重现了。
查看jar包,确实没有该set方法。
查看该jar包的发布记录,今天同学更新过代码,居然不告诉我。
重新更新配置去掉那个属性,打包发布,OK成功了。
相关文章
- 暂无相关文章
用户点评