1,把bean,vo转化为json格式时老提示如下错误:
Exception in thread "main" net.sf.json.JSONException: java.lang.NoSuchMethodException: Property '***' has no getter method
解决:声明bean,vo为public class xxx,必须是public,我用默认类型(class xxx)都不行
bean转化为json
最新推荐文章于 2022-07-03 17:48:30 发布