I want to turn off Swagger when my Spring Boot app is in production. I woudl perfer not to use profiles because I want finer grained control.
This is my configuration