mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-25 02:49:03 +00:00
Update @EnableAutoConfiguration exclude example
Update documentation to use a real auto-configure class. Fixes #791
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user