【JavaBean错误】Cannot find a method to write property [类型] of type [类型] in a bean of type
在JavaBean的setter方法中,要求setXXX(ClassType xXX)的参数与XXX变量的类型ClassType一致,否则报错:
Cannot find a method to write property [类型] of type [类型] in a bean of type
Eg:举一个错例
(1)JavaBean定义:(注意setter方法是错的)
packag...
原创
2019-12-26 11:27:17 ·
1779 阅读 ·
2 评论