swagger关闭生产访问

通过profile注解来处理。 Swagger的congif类上声明@Profile({"dev", "test"}),发布到生产上使用product的profile时, swagger关闭

原文地址:https://www.cnblogs.com/anakin/p/8569820.html