SSH框架 Bean property * is not wri

2019-05-17  本文已影响0人  ming_Liu

错误出现提示:

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方法,注意名字对应好。

上一篇 下一篇

猜你喜欢

热点阅读