Commit 28bd87cb authored by Phillip Webb's avatar Phillip Webb

Update @EnableAutoConfiguration exclude example

Update documentation to use a real auto-configure class.

Fixes #791
parent a0166076
......@@ -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 {
}
----
......
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