场景
提示信息1:
It is illegal to call this method if the current request is not in asynchronous mode (i.e.
isAsyncStarted() returns false)
提示信息2:
Request processing failed; nested exception is com.alibaba.fastjson.JSONException: write javaBean error, fastjson version 1.2.58, class
这个一般出现序列化的时候。例如拦截器,打印request。
解决方案
不直接序列化整个request,而是拿出其中需要的字段进行打印即可。