Bean property 'username' is not readable or has an invalid getter method

来源:互联网 发布:mac播放mkv的播放器 编辑:程序博客网 时间:2024/05/26 12:03

Invalid property 'username' of bean class [com.bbk.entity.User]: Bean property 'username' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?


首先,jsp中字段名称java bena的属性一样。
其次,不是看java bean中字段的值是不是一样,要看getter和setter是否一致。 
最后,由于涉及到添加 spring.tld spring-form.tld的问题,所以有可能有spring版本的问题。

0 0
原创粉丝点击