Bean property ' ' is not writable or has an invalid setter method.
Does the parameter type of the setter match the return type of the getter?
原因是我的service实现中没有注入dao
注入即可:
private ShopRewardRecordDao shopRewardRecordDao;
public void setShopRewardRecordDao(ShopRewardRecordDao shopRewardRecordDao) {
this.shopRewardRecordDao = shopRewardRecordDao;
}
本文解决了一个关于Bean属性不可写或setter方法无效的问题。通过检查getter和setter方法参数类型是否匹配来解决问题,并展示了如何正确地注入DAO层。
1万+

被折叠的 条评论
为什么被折叠?



