Add `exclude` attribute to @SpringBootApplication

Fixes gh-2207
This commit is contained in:
Phillip Webb 2014-12-19 13:52:08 -08:00
parent 0e88e1b86e
commit 8d12130a2b
1 changed files with 5 additions and 0 deletions

View File

@ -46,4 +46,9 @@ import org.springframework.context.annotation.Configuration;
@ComponentScan
public @interface SpringBootApplication {
/**
* Exclude specific auto-configuration classes such that they will never be applied.
*/
Class<?>[] exclude() default {};
}