spring源碼學習--註解加載bean實例化

<context:component-scan base-package=「com.zoe.post,com.zoe.cust」/> 多個package的話,base-package之間用,隔開 @Service @Component 註釋支持的前提是包掃描,通過掃描器掃描到有註解的類並封裝成BeanDefinition對象 包掃描的主要邏輯方法:org.springframework.conte
相關文章
相關標籤/搜索