Browse Source

Update @EnableAutoConfiguration exclude example

Update documentation to use a real auto-configure class.

Fixes #791
pull/812/head
Phillip Webb 12 years ago
parent
commit
28bd87cbae
  1. 2
      spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc

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

@ -453,7 +453,7 @@ you can use the exclude attribute of `@EnableAutoConfiguration` to disable them. @@ -453,7 +453,7 @@ you can use the exclude attribute of `@EnableAutoConfiguration` to disable them.
import org.springframework.context.annotation.*;
@Configuration
@EnableAutoConfiguration(exclude={EmbeddedDataSourceConfiguration.class})
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
public class MyConfiguration {
}
----

Loading…
Cancel
Save