错误信息: nested exception is java.lang.IllegalStateException: It is illegal to call this method if the current request is not in asynchronous mode (i.e. isAsyncStarted() returns false)] with root cause:错误原因: joinPoint.getArgs()返回的数组中携带有Request(HttpServl…
AOP的日志拦截类中,抛出异常: java.lang.IllegalStateException: It is illegal to call this method if the current request is not in asynchronous mode 主要原因:对方法的参数使用JSON.toJSONString(args[index])转换时,有异常抛出[如果参数类型是请求和响应的http,使用JSON.toJSONString()转换会抛异常] 解决方案:将不能进行序列化的入…
import org.apache.logging.log4j.Level; import org.apache.logging.log4j.core.impl.Log4jLogEvent; import org.apache.logging.log4j.core.layout.PatternLayout; import org.apache.logging.log4j.message.SimpleMessage; /** * Created by lanhuajian on 2017/3/29…