Commit 8d12130a authored by Phillip Webb's avatar Phillip Webb

Add `exclude` attribute to @SpringBootApplication

Fixes gh-2207
parent 0e88e1b8
...@@ -46,4 +46,9 @@ import org.springframework.context.annotation.Configuration; ...@@ -46,4 +46,9 @@ import org.springframework.context.annotation.Configuration;
@ComponentScan @ComponentScan
public @interface SpringBootApplication { public @interface SpringBootApplication {
/**
* Exclude specific auto-configuration classes such that they will never be applied.
*/
Class<?>[] exclude() default {};
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment