springboot bean掃描路徑

1:默認掃描啓動類所在路徑下全部的beanservice 2:能夠在啓動類中添加註解,手動指定掃描路徑:vi @ComponentScan(basePackages = {"com.xxx.service1.*","com.xxx.service2.**"})
相關文章
相關標籤/搜索