How to inject a session scoped bean into another session scoped bean without proxy?
@Component
@Scope("session")
class Foo {
@Inject Bar bar;
}
@Component
@Scope("session")
class Bar {
}
It reports error "No matching bean". Though a TARGET_CLASS scope-proxy could resolve this problem, but why do I need a proxy for same scoped beans?
@Autowiredinstead of@Inject? - skaffmanto include more information- how? - Xiè Jìléi