I have swagger plugged in to my spring boot application. Spring boot allows you to have property files for each environment that you have. Is there a way to disable swagger fo
If you are working on multiple environments then you can also use @Profile as array
@Configuration @EnableSwagger2 @Profile({"dev","qa"}) public class SwaggerConfig { // your swagger configuration }