From f79edc59f3d7537b3442cbd5fa9d27d5deb4d495 Mon Sep 17 00:00:00 2001 From: qibaoguang Date: Fri, 20 Mar 2015 00:39:28 +0800 Subject: [PATCH] Update 16.1. Gradually replacing auto-configuration.md --- .../16.1. Gradually replacing auto-configuration.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/III. Using Spring Boot/16.1. Gradually replacing auto-configuration.md b/III. Using Spring Boot/16.1. Gradually replacing auto-configuration.md index e69de29..3cfad52 100644 --- a/III. Using Spring Boot/16.1. Gradually replacing auto-configuration.md +++ b/III. Using Spring Boot/16.1. Gradually replacing auto-configuration.md @@ -0,0 +1,5 @@ +### 16.1. 逐步替换自动配置 + +自动配置是非侵占性的,任何时候你都可以定义自己的配置类来替换自动配置的特定部分。例如,如果你添加自己的`DataSource` bean,默认的内嵌数据库支持将不被考虑。 + +如果需要找出当前应用了哪些自动配置及应用的原因,你可以使用`--debug`开关启动应用。这将会记录一个自动配置的报告并输出到控制台。