`

JSON-lib使用

    博客分类:
  • Java
阅读更多

FAQ:

 

* 把bean转化为json 格式时老提示如下错误:

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

 

  解决:

  必须声明bean为 public class Xxx{}

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics