java.lang.IllegalStateException: It is illegal to call this method if the current request is not in

使用fastjson報的錯誤
原因是序列化了

ServletRequest
ServletResponse
MultipartFile

這些類的對象
而這些類的對象不能序列化
參考
關於一次AOP攔截入參記錄日誌報錯的梳理總結
It is illegal to call this method if the current request is not in asynchronous mode #1778

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章