Spring註解驅動開發中的註解(1)

[email protected]: a.第一種用法,@Import({導入到容器中的組件}),容器中就會自動註冊這個組件,id默認是全類名 b.第二種用法,@Import({ImportSelector的實現類}), c.第三種用法,@Import({ImportBeanDefinitionRegistrar的實現類}),手動註冊bean到容器中 給容器中註冊組件的四種方式 1)、包掃描+組件標
相關文章
相關標籤/搜索