Are there elegant ways to prevent AutoConfigure configuration classes when certain profile (e.g. test) in use? I've all configs in my tests, and don't wanna mark every config in main folder with @Profile("!test")
there also is: @SpringBootApplication(exclude=****Configuration.class) possibility but it's for class, not for profile.