原文:異步任務出現異常java.lang.IllegalStateException: No thread-bound request found

原因之一是在異步方法中使用了一下代碼來注入request ...

2021-12-23 14:24 2 2431 推薦指數:

查看詳情

No thread-bound request found

最近在給同事調試項目時,發現一個問題,在Security Success 回調邏輯中調用RequestContextHolder.currentRequestAttributes() 出現報錯: caused by :java.lang.IllegalStateException ...

Wed May 12 22:12:00 CST 2021 0 5270
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM