S

Shyam Dubey • 3.70K Points
Extraordinary

Q. How can you exclude a class from being loaded by Spring Boot auto-configuration?

  • (A) @Exclude
  • (B) @EnableExclude
  • (C) @SpringBootApplication(exclude = {...})
  • (D) @NoConfig
  • Correct Answer - Option(C)
  • Views: 8
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
Use exclude attribute of @SpringBootApplication to prevent loading of auto-configurations.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.