草庐IT

ScopedProxy

全部标签

java - ScopedProxy 如何决定使用什么 Session?

Singleton不能AutowiringSessionBean,但ScopedProxy可以。假设100个用户在同一个应用程序中同时拥有一个有效的Session,ScopedProxy是如何决定session的含义的?我认为ScopedProxy不会选择任何随机session,在我看来这是无稽之谈。ScopedProxy如何决定使用哪个session?如果0个用户有一个session怎么办?会发生NullPointerException吗?@Async与调用Request-Processing-Thread是不同的线程,如何将HttpRequest-Context注入(inject)