Add ComponentScan aliases on SpringBootApplication

Add aliases for `@ComponentScan`attributes on `@SpringBootApplication`
so that it is possible to customize how the component scan should be
applied on the project.

Previously, one would have to revert to `@EnableAutoConfiguration` to
achieve the same result.

Closes gh-3368
This commit is contained in:
Stephane Nicoll
2015-08-27 14:12:01 +02:00
parent ea4061fe99
commit 2c619232b3
2 changed files with 25 additions and 0 deletions

View File

@@ -696,6 +696,9 @@ The `@SpringBootApplication` annotation is equivalent to using `@Configuration`,
}
----
NOTE: `@SpringBootApplication` also provides aliases to customize the attributes of
`@EnableAutoConfiguration` and `@ComponentScan`.
[[using-boot-running-your-application]]