Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

微服务模式下,生产环境禁用swagger #6100

Open
chenhengeng opened this issue Apr 9, 2024 · 2 comments
Open

微服务模式下,生产环境禁用swagger #6100

chenhengeng opened this issue Apr 9, 2024 · 2 comments

Comments

@chenhengeng
Copy link

chenhengeng commented Apr 9, 2024

版本号:3.6.2
前端版本:vue3版
问题描述:

微服务模式下,生产环境直接访问gateway路径 会暴露swagger的接口列表信息。
怎么能像非微服务,在Swagger2Config加@Profile({"dev","test"}),即可禁用

截图&代码:

友情提示(为了提高issue处理效率):

  • 未按格式要求发帖,会被直接删掉;
  • 描述过于简单或模糊,导致无法处理的,会被直接删掉;
  • 请自己初判问题描述是否清楚,是否方便我们调查处理;
  • 针对问题请说明是Online在线功能(需说明用的主题模板),还是生成的代码功能;
@zhangdaiscott
Copy link
Member

zj

@chenhengeng
Copy link
Author

礼貌的问一下 zj是什么意思

EightMonth pushed a commit to EightMonth/jeecg-boot that referenced this issue May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants