spring-mvc - 如何找到招摇的路径
问题描述
我有以下招摇配置。现在我在浏览器中打开 swagger-ui 的招摇路径是什么。
.select()
.apis(RequestHandlerSelectors.any())
.paths(PathSelectors.regex(".*/v2/accounts/.*"))
.build()
.securitySchemes(Collections.singletonList(apiKey()))
.securityContexts(Collections.singletonList(securityContext()));
解决方案
您可以使用以下方法:
- 使用命令在节点包 http-server 上全局安装 -
npm install -g http-server
http-server --cors
将目录更改为所在your.json
位置后运行- 打开swagger ui(即dist/index.html)
- 将http://localhost:8080/your.json放在输入字段中,然后单击“探索”
推荐阅读
- node.js - 带有Socket io的Ubuntu Node js不允许客户端连接
- java - 以编程方式添加edittext iD
- node.js - Nest.js - 清理请求正文
- python - PyAutoGUI 不想点击但可以移动
- c# - Entity Framework Linq IQueryable 不包含 Contains 的定义
- java - 使用 Heroku 的 Quarkus 数据源
- garbage-collection - 垃圾收集语言是否容易受到缓冲区溢出的影响?
- git - Git 只合并一个开发分支的最后一次提交
- windows - 将 windows 内核驱动程序连接到 windows 中的物理串行端口 (COM1)
- flutter - 在flutter dart中访问和修改来自不同类的变量