knife4j
knife4j copied to clipboard
在spring doc中请求发生错误
Describe the bug
在spring doc中 servers中定义的是请求服务的地址 但是在Knife4j中发送请求和servers中的参数并没有关系
{
"openapi": "3.0.1",
"info": {
"title": "OpenAPI definition",
"version": "v0"
},
"servers": [
{
"url": "http://127.0.0.1:8200/api/vmc-service",
"description": "Generated server url"
}
],
"paths": {
"/system/info": {
"get": {
"tags": [
"1.0 系统信息"
],
"operationId": "info",
"responses": {
"200": {
"description": "OK",
"content": {
"/": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
},
"components": {}
}
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Knife4j Version (please complete the following information):
Additional context Add any other context about the problem here.
目前是没有使用server的,用的根路径
后续会使用server的根路径做为请求路径吗