javabean规范 at

JAVABEAN规范

 

https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=7224-javabeans-1.01-fr-spec-oth-JSpec@CDS-CDS_Developer

 

=================================================================

JSON: property "xxx" has no getter method in class "..."
Exception in thread "main" net.sf.json.JSONException: java.lang.NoSuchMethodException: Property 'name' has no getter method
解决:声明bean为public class xxx,必须是public,我用默认类型(class xxx)都不行

==================================================================

public 构造函数,get/set

属性开头两个字母小写

 

=================================================================

 

你可能感兴趣的:(thread,.net,json,bean,sun)