knife4j icon indicating copy to clipboard operation
knife4j copied to clipboard

在spring doc中请求发生错误

Open xuweichao010 opened this issue 1 year ago • 2 comments

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": {} } 微信截图_20231226160129

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. 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.

xuweichao010 avatar Dec 26 '23 08:12 xuweichao010

目前是没有使用server的,用的根路径

xiaoymin avatar Jan 04 '24 11:01 xiaoymin

后续会使用server的根路径做为请求路径吗

xuweichao010 avatar Jan 11 '24 02:01 xuweichao010