让人崩溃的spring问题

四川民工甲 2011-03-10 04:08:04
Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'smsErrorMapping' of bean class [com.sb.hellokitty.self.common.webservice.productaccept.validator.productaccept.BookProductRepeatValidator]: Bean property 'smsErrorMapping' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

---------
BookProductRepeatValidator里面根本就没有 依赖smsErrorMapping,两个类一点关系都没有,
spring配置文件里也没有配置BookProductRepeatValidator对smsErrorMapping的依赖

这是什么情况啊?
...全文
63 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
qm4050 2011-03-10
  • 打赏
  • 举报
回复
smsErrorMapping属性没有set方法
quanquanfly 2011-03-10
  • 打赏
  • 举报
回复
没有set方法
四川民工甲 2011-03-10
  • 打赏
  • 举报
回复
原来名字叫“bookProductRepeatVal”的bean有多个,重复了!
spring只提供第一个先加载的!其余重复的不做管理
linya333 2011-03-10
  • 打赏
  • 举报
回复
Bean property 'smsErrorMapping' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

你没有对smsErrorMapping提供set和geta方法。
DearFen 2011-03-10
  • 打赏
  • 举报
回复
是不是没有提供 geter seter?
Evil_cloud 2011-03-10
  • 打赏
  • 举报
回复
spring 秀逗了!~~

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧