Requested bean is currently in creation: Is there an unresolvable circular reference?
问题 i am using spring 3, and i have two beans of view scope: 1- Bean1: @Component("bean1") @Scope("view") public class Bean1 { @Autowired private Bean2 bean2; } 2- Bean2: @Component("bean2") @Scope("view") public class Bean2 { @Autowired private Bean1 bean1; } the view is a custom scope: <bean class="org.springframework.beans.factory.config.CustomScopeConfigurer"> <property name="scopes"> <map> <entry key="view"> <bean class="${project.groupId}.utils.ViewScope" /> </entry> </map> </property> <