请问下,什么情况下会报这个错误:
Caused by: java.lang.OutOfMemoryError: try enabling LargeObject feature instead
at com.alibaba.fastjson2.JSONWriterUTF8.ensureCapacity(JSONWriterUTF8.java:2122) ~[fastjson2-2.0.50.jar:?]
at com.alibaba.fastjson2.JSONWriterUTF8.writeStringUTF16(JSONWriterUTF8.java:570) ~[fastjson2-2.0.50.jar:?]
at com.alibaba.fastjson2.writer.OWG_14_27_BaseCar.write(Unknown Source) ~[?:?]
at com.alibaba.fastjson2.writer.ObjectWriterImplList.write(ObjectWriterImplList.java:364) ~[fastjson2-2.0.50.jar:?]
at com.alibaba.fastjson2.writer.ObjectWriterArray.write(ObjectWriterArray.java:103) ~[fastjson2-2.0.50.jar:?]
at com.alibaba.fastjson2.writer.OWG_3_3_Result.write(Unknown Source) ~[?:?]
at com.alibaba.fastjson2.JSON.writeTo(JSON.java:3481) ~[fastjson2-2.0.50.jar:?]
at com.alibaba.fastjson2.support.spring.http.converter.FastJsonHttpMessageConverter.writeInternal(FastJsonHttpMessageConverter.java:138) ~[fastjson2-extension-spring5-2.0.50.jar:?]
at org.springframework.http.converter.AbstractHttpMessageConverter.write(AbstractHttpMessageConverter.java:227) ~[spring-web-5.3.19.jar:5.3.19]
at com.alibaba.fastjson2.support.spring.http.converter.FastJsonHttpMessageConverter.write(FastJsonHttpMessageConverter.java:86) ~[fastjson2-extension-spring5-2.0.50.jar:?]
请问下,什么情况下会报这个错误: Caused by: java.lang.OutOfMemoryError: try enabling LargeObject feature instead at com.alibaba.fastjson2.JSONWriterUTF8.ensureCapacity(JSONWriterUTF8.java:2122) ~[fastjson2-2.0.50.jar:?] at com.alibaba.fastjson2.JSONWriterUTF8.writeStringUTF16(JSONWriterUTF8.java:570) ~[fastjson2-2.0.50.jar:?] at com.alibaba.fastjson2.writer.OWG_14_27_BaseCar.write(Unknown Source) ~[?:?] at com.alibaba.fastjson2.writer.ObjectWriterImplList.write(ObjectWriterImplList.java:364) ~[fastjson2-2.0.50.jar:?] at com.alibaba.fastjson2.writer.ObjectWriterArray.write(ObjectWriterArray.java:103) ~[fastjson2-2.0.50.jar:?] at com.alibaba.fastjson2.writer.OWG_3_3_Result.write(Unknown Source) ~[?:?] at com.alibaba.fastjson2.JSON.writeTo(JSON.java:3481) ~[fastjson2-2.0.50.jar:?] at com.alibaba.fastjson2.support.spring.http.converter.FastJsonHttpMessageConverter.writeInternal(FastJsonHttpMessageConverter.java:138) ~[fastjson2-extension-spring5-2.0.50.jar:?] at org.springframework.http.converter.AbstractHttpMessageConverter.write(AbstractHttpMessageConverter.java:227) ~[spring-web-5.3.19.jar:5.3.19] at com.alibaba.fastjson2.support.spring.http.converter.FastJsonHttpMessageConverter.write(FastJsonHttpMessageConverter.java:86) ~[fastjson2-extension-spring5-2.0.50.jar:?]
在fastjson1时,不报错的,谢谢!