码迷,mamicode.com
首页 > Web开发 > 详细

解决 com.alibaba.fastjson.JSONException: autoType is not support

时间:2017-07-19 18:27:44      阅读:3470      评论:0      收藏:0      [点我收藏+]

标签:class   highlight   conf   参数   com   json   global   exce   autotype   

打开autotype功能

1、JVM启动参数

-Dfastjson.parser.autoTypeSupport=true

2、代码中设置

ParserConfig.getGlobalInstance().setAutoTypeSupport(true); 

如果有使用非全局ParserConfig则用另外调用setAutoTypeSupport(true);
 
 

解决 com.alibaba.fastjson.JSONException: autoType is not support

标签:class   highlight   conf   参数   com   json   global   exce   autotype   

原文地址:http://www.cnblogs.com/kolnick/p/7200250.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!