且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Spring Security当前用户在线程中

更新时间:2023-12-02 15:39:40

如果您希望生成的线程继承父线程的SecurityContext,则应设置MODE_INHERITABLETHREADLOCAL策略.

If you want spawned threads to inherit SecurityContext of the parent thread, you should set MODE_INHERITABLETHREADLOCAL strategy.

请参阅请参考也是