Skip to content

Commit 5dc7414

Browse files
Phillip Webbmdeinum
Phillip Webb
authored andcommitted
Update @EnableAutoConfiguration exclude example
Update documentation to use a real auto-configure class. Fixes spring-projects#791
1 parent 1ebe78e commit 5dc7414

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ you can use the exclude attribute of `@EnableAutoConfiguration` to disable them.
453453
import org.springframework.context.annotation.*;
454454
455455
@Configuration
456-
@EnableAutoConfiguration(exclude={EmbeddedDataSourceConfiguration.class})
456+
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
457457
public class MyConfiguration {
458458
}
459459
----

0 commit comments

Comments
 (0)