原文:异步任务出现异常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