You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add `spring.autoconfigure.exclude` to control the list of
auto-configuration classes to exclude via configuration. Merge the
exclusions defined on the `@EnableAutoConfiguration` or
`@SpringBooApplication` if any.
Closesgh-2435
Copy file name to clipboardExpand all lines: spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/EnableAutoConfiguration.java
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -44,8 +44,9 @@
44
44
* Auto-configuration tries to be as intelligent as possible and will back-away as you
45
45
* define more of your own configuration. You can always manually {@link #exclude()} any
46
46
* configuration that you never want to apply (use {@link #excludeName()} if you don't
47
-
* have access to them). Auto-configuration is always applied after user-defined beans
48
-
* have been registered.
47
+
* have access to them). You can also exclude them via the
48
+
* {@code spring.autoconfigure.exclude} property. Auto-configuration is always applied
49
+
* after user-defined beans have been registered.
49
50
* <p>
50
51
* The package of the class that is annotated with {@code @EnableAutoConfiguration} has
51
52
* specific significance and is often used as a 'default'. For example, it will be used
Copy file name to clipboardExpand all lines: spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/EnableAutoConfigurationImportSelector.java
Copy file name to clipboardExpand all lines: spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/EnableAutoConfigurationImportSelectorTests.java
0 commit comments