现在的位置: 首页 > 综合 > 正文

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

2018年09月15日 ⁄ 综合 ⁄ 共 309字 ⁄ 字号 评论关闭

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版本的问题。

抱歉!评论已关闭.