@bean @requestScope Injector injector() 这样用是不是就不需要 加 requestscoped 和 filter了?
这不好。Guice Injector和Spring ApplicationContext一样,本身都被设计成singleton,有很多状态需要管理。还是不要挑战这种违背设计意图的事情比较好。
或者直接去掉 singleton 不行吗?