How to disable @Configuration initialization in WebFluxTest?

Solution 1:

Add

@ActiveProfiles("YOUR_ENV_OTHER_THAN_TEST")

below or above @Configuration

For multiple environments..

@ActiveProfiles(profiles ={env1, env2,env3})