S

Shyam Dubey • 3.70K Points
Extraordinary

Q. How can you disable a specific auto-configuration class?

  • (A) Use @DisableConfig
  • (B) Use @SpringBootApplication(exclude = ...)
  • (C) Use application.properties
  • (D) Remove the dependency
  • Correct Answer - Option(B)
  • Views: 13
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
You can disable an auto-config class by passing it to the exclude parameter in @SpringBootApplication.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.