From 8a5359bf585a6bcfed4f53e0a775289da6df57eb Mon Sep 17 00:00:00 2001 From: qibaoguang Date: Fri, 20 Mar 2015 00:37:47 +0800 Subject: [PATCH] Update 15.1. Importing additional configuration classes.md --- .../15.1. Importing additional configuration classes.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/III. Using Spring Boot/15.1. Importing additional configuration classes.md b/III. Using Spring Boot/15.1. Importing additional configuration classes.md index e69de29..df5757e 100644 --- a/III. Using Spring Boot/15.1. Importing additional configuration classes.md +++ b/III. Using Spring Boot/15.1. Importing additional configuration classes.md @@ -0,0 +1,3 @@ +### 15.1. 导入其他配置类 + +你不需要将所有的`@Configuration`放进一个单独的类。`@Import`注解可以用来导入其他配置类。另外,你也可以使用`@ComponentScan`注解自动收集所有的Spring组件,包括`@Configuration`类。