ClassCastException: class com.alibaba.fastjson.JSONObject cannot be cast to class

	FastJsonConfig fastJsonConfig = new FastJsonConfig();
	fastJsonConfig.setFeatures(Feature.SupportAutoType);
	fastJsonConfig.setSerializerFeatures(SerializerFeature.WriteClassName);

修改fastjson配置,启动自动类型转换

发布了13 篇原创文章 · 获赞 11 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/weixin_40908734/article/details/99693866