mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Update @EnableAutoConfiguration exclude example
Update documentation to use a real auto-configure class. Fixes #791
This commit is contained in:
parent
a0166076e0
commit
28bd87cbae
@ -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…
Reference in New Issue
Block a user