
swagger
russle
Java开发工程师
**注意事项**:本博客所有代码是为了介绍相关内容而编写或者引用的,示例代码并非可直接用于生产的代码。仅供参看而已。
展开
-
生产环境中禁用swagger
Swagger是我们常用的API Doc工具,非常便于开发人员调试,后台和前端开发人员协作,以及对外公布API使用。如何在生产环境中禁止swagger了?如何禁止Swagger,方法有很多,我们选择最简单实用的,也就是直接在使用@Profile注解。 项目背景介绍, 我们有三个环境dev, test, prod,我们只在dev环境中使用swagger,test和prod都禁止使用,为了体现使...原创 2018-06-09 12:47:41 · 14237 阅读 · 1 评论 -
Swagger提示Unable to infer base url
错误信息为:Unable to infer base url.This is common when using dynamic servlet registration or when the API is behind an API Gateway.The base url is the root of where all the swagger resources are served...原创 2018-12-28 11:06:27 · 4608 阅读 · 0 评论