Spring Boot Interview
Spring Boot Interview
On the other foot, if the class is not on the classpath, you can use
the excludeName attribute of the annotation and specify the fully qualified
name instead.
//By using "excludeName"
@EnableAutoConfiguration(excludeName={Foo.class})
Also, Spring Boot provides the facility to control the list of auto-
configuration classes to exclude by using
the spring.autoconfigure.exclude property. You can add into the
application.properties. And you can add multiple classes with comma
separated.
//By using property file
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataS
ourceAutoConfiguration