美文网首页
SSH框架 Bean property * is not wri

SSH框架 Bean property * is not wri

作者: ming_Liu | 来源:发表于2019-05-17 08:17 被阅读0次

错误出现提示:

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配置文件中配置问题 或配置文件中<bean>某个地方写的不对或者property对应的Name在这个class里面没有对应的getter和setter方法。

解决方法:

相应的class中,写上相对应的getter、setter方法,注意名字对应好。

相关文章

网友评论

      本文标题:SSH框架 Bean property * is not wri

      本文链接:https://www.haomeiwen.com/subject/njymaqtx.html