**fastjson的使用配置**
今天在使用fastjson是出现了如下的错误:
org.xml.sax.SAXParseException; lineNumber: 17; columnNumber: 17; cvc-complex-type.2.4.a: 发现了以元素 ‘array’ 开头的无效内容。应以 ‘{“http://www.springframework.org/schema/beans”:description, “http://www.springframework.org/schema/beans”:meta, “http://www.springframework.org/schema/beans”:bean, “http://www.springframework.org/schema/beans”:ref, “http://www.springframework.org/schema/beans”:idref, “http://www.springframework.org/schema/beans”:value, “http://www.springframework.org/schema/beans”:null, “http://www.springframework.org/schema/beans”:list, “http://www.springframework.org/schema/beans”:set, “http://www.springframework.org/schema/beans”:map, “http://www.springframework.org/schema/beans”:props, WC[##other:“http://www.springframework.org/schema/beans”]}’ 之一开头。
配置如下:
经过查找发现少配置了一个property属性标签,并且将array修改为list标签即可。
正确配置如下:
再次访问时即可出现正确结果。
希望这篇文章可以给你带来一些帮助。