swagger关闭生产访问

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

posted @ 2018-03-14 20:17  anakinf  阅读(1006)  评论(0编辑  收藏  举报