xiaoymin / knife4j

Knife4j is a set of Swagger2 and OpenAPI3 All-in-one enhancement solution

Home Page:https://doc.xiaominfo.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

不支持spring最新版本的路径匹配模式

jiangqiang1996 opened this issue · comments

image

@Operation(summary = "test")
@GetMapping(value = {"/test/{*path}"})
public Result<String> test(@PathVariable String path) {
    return Result.ok(path);
}

此写法可以让path获取带有一个或多个/的路径变量。但是knife4j的接口调试却把参数拼接在了问号后面。
image

image

正常应该是拼接在url上才对。