CodePudding user response:
Test, in the spring structure problems circular dependency injection, injection and attributes but you can use @ Lazy Lazy loading way, the @autowired and Setter way,Spring dependence on @autowired processing is actually from the cache dependencies in the ObjectFactory to create an instance of an object, not again to create dependent objects, so as to solve the problem of circular dependencies,
CodePudding user response:
May be used in different ways, also do not have met you the coupling circumstances, there may be other reasons