Browse Source

Add `exclude` attribute to @SpringBootApplication

Fixes gh-2207
pull/2400/head
Phillip Webb 11 years ago
parent
commit
8d12130a2b
  1. 5
      spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/SpringBootApplication.java

5
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/SpringBootApplication.java

@ -46,4 +46,9 @@ import org.springframework.context.annotation.Configuration; @@ -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 {};
}

Loading…
Cancel
Save