ContributionsMost RecentMost LikesSolutionsRe: Restricting Access To Production Is there any other way in swagger to restrict the URL production access Restricting Access To Production I wan to restrict my swagger access, i dont want it to be used in production. I tried @EnableSwagger2 @Profile({"dev","tst","qa"}) this is not working