SSH框架 Bean property * is not writable or has an invalid setter method错误分析与解决方法
2020-02-02 13:06
901 查看
原文链接:https://blog.csdn.net/naughty610/article/details/5619092
错误出现提示:
org.springframework.beans.NotWritablePropertyExcep tion:Bean property ‘SysUserService’ is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
错误分析 :
根据org.springframework.beans.NotWritablePropertyExcep tion 初步分析是spring配置文件中配置问题 或配置文件中某个地方写的不对。
出错地点(红色标注为为导致出错的地方):
而 java类中我写set方法中是这么写的
public class SysUserService {
private SysUserDao sysuserdao;
public void setSysuserdao(SysUserDao sysuserdao ) {
this.sysuserdao = sysuserdao;
}
}
set 中的属性sysuserdao 和 property name="SysUserDao " 写的不一致
解决方法:
将修改成和set一致 即可。
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- SSH框架 Bean property * is not writable or has an invalid setter method错误分析与解决方法
- SSH框架 Bean property * is not writable or has an invalid setter method错误分析与解决方法
- Spring配置文件加载时出现Bean property 'newscontentDAO' is not writable or has an invalid setter method错误的解决
- Spring配置文件加载时出现Bean property 'newscontentDAO' is not writable or has an invalid setter method错误的解决[00原创]
- 错误信息:Bean property 'sessionFactory' is not writable or has an invalid setter method.
- 解决Bean property ** is not writable or has an invalid setter method
- Bean property 'xxx' is not writable or has an invalid setter method
- Bean property 'adminService' is not writable or has an invalid setter method
- Bean property 'xxx' is not writable or has an invalid setter method
- Bean property 'annotatedClasses' is not writable or has an invalid setter method
- Bean property 'lobHandler' is not writable or has an invalid setter method.
- Bean property 'XXXXX' is not writable or has an invalid setter method
- dubbo-admin-2.4.9 运行报错: Bean property 'URIType' is not writable or has an invalid 解决方法
- quartz使用时遇到的问题Bean property 'xxx' is not writable or has an invalid setter method. Did you mean 'xxx
- is not writable or has an invalid setter method错误的解决
- Bean property 'manualPaperService' is not writable or has an invalid setter method. Did you mean 'ma
- spring中XML中Bean property 'dataSource' is not writable or has an invalid setter method.
- Bean property 'interceptorDao' is not writable or has an invalid setter method. Did you mean 'interc
- Bean property 'RegDao' is not writable or has an invalid setter method. Does the parameter type of t
- Bean property 'service' is not writable or has an invalid setter method. Did you mean 'serivce'?