欢迎访问悦橙教程(wld5.com),关注java教程。悦橙教程  java问答|  每日更新
页面导航 : > > 文章正文

java,

来源: javaer 分享于  点击 39049 次 点评:9

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成功了。

 

相关文章

    暂无相关文章
相关栏目:

用户点评