原书出处
高可用可伸缩微服务架构
04 Spring Boot/Spring Cloud实践 4.1.2 Spring Boot之SpringApplication
onentScan所在类的package及向下进行扫描。
所以通常我们在定义Spring Boot启动类的时候,会将它放在root package下,这样就能根据默认策略扫描到所有需要定义的类。
而@ComponentScans可以配置多个@Compo
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/高可用可伸缩微服务架构/_epub-src/OEBPS/Text/chapter009.xhtml
EPUB SHA-256:aa703b4c2de57749df4c24c298ac96f93d34fd4cc0868e3bd7413ec91be845fe