1 Answer

0 votes
by

You can use the exclude attribute of @EnableAutoConfiguration for this purpose as shown below:

  @EnableAutoConfiguration(exclude = {InterviewBitAutoConfiguration.class})

If the class is not specified on the classpath, we can specify the fully qualified name as value for the excludeName.

  //By using "excludeName"

  @EnableAutoConfiguration(excludeName={Foo.class})

You can add into the application.properties and multiple classes can be added by keeping it comma separated.

Related questions

0 votes
asked Apr 4, 2021 in Spring by Robindeniel
0 votes
asked Apr 4, 2021 in Spring by Robindeniel
...