@Bean初始化name值相同

在@Bean初始化時,spring先加載@Bean方法所在的@Configuration類。在ConfigurationClassBeanDefinitionReader判斷beanName值是否相同,若已存在則放棄初始化這個方法
相關文章
相關標籤/搜索