I have a Java web app with spring boot
When run test I need to exclude some Java config files:
Test config (need to include when test run):
@
The easiest way that I use -
@ConditionalOnProperty
in my main source code. Voila!