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

knife4j-openapi3-spring-boot-starter 4.5.0 如何设置pathMaping #849

Open
hanxue2010 opened this issue Oct 15, 2024 · 1 comment
Open

Comments

@hanxue2010
Copy link

由于项目各服务部署在内网,出口只有一个地址,访问接口文档时,通过nginx代理。先阶段其它资源代理之后都能够正常获取(有图),而接口文档无法获取,查看请求地址没有走代理(),考虑是没有配置pathMaping的原因,但knif4j配置文件中没有找到pathMaping配置位置。

整体项目在开发环境,也就是没有代理的情况下,是正常的。

成功请求地址:http://172.16.21.14:17180/prod-api/dispatch/v3/api-docs/swagger-config
失败地址:http://172.16.21.14:17180/v3/api-docs/%E5%9F%BA%E7%A1%80%E7%AE%A1%E7%90%86

swagger-config请求成功
指定组的接口文档获取失败

@mingyang66
Copy link

问题有解决吗?遇到了类似的问题

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