美文网首页
生产环境禁用swagger

生产环境禁用swagger

作者: __简单点__ | 来源:发表于2020-12-24 17:47 被阅读0次

https://blog.csdn.net/russle/article/details/80631981

1.swagger配置文件上加@Profile("dev")  或 @Profile({"dev","test"})注解 即可允许那些配置启动swagger

application-dev.yaml 

application-test.yaml 

application-prod.yaml

相关文章

网友评论

      本文标题:生产环境禁用swagger

      本文链接:https://www.haomeiwen.com/subject/lsomnktx.html