Google News
logo
Java Spring Boot - Interview Questions
How to disable a specific auto-configuration class?
You can use exclude attribute of @EnableAutoConfiguration if you want auto-configuration not to apply to any specific class.
 
//use of exclude
@EnableAutoConfiguration(exclude={className})

Advertisement