JSON: property "xxx" has no getter method in class "..."

Exception in thread "main" net.sf.json.JSONException: java.lang.NoSuchMethodException: Property 'password' has no getter method 

解决:声明bean为public class xxx,必须是public,我用默认类型(class xxx)都不行

郁闷了!!!

原文地址:https://www.cnblogs.com/gmq-sh/p/4281979.html