Skip to content

Update knife4j-vue to auto-adapt aggregation mode and single mode#979

Open
nealwei2008 wants to merge 4 commits intoxiaoymin:devfrom
nealwei2008:openapi3-and-aggregation
Open

Update knife4j-vue to auto-adapt aggregation mode and single mode#979
nealwei2008 wants to merge 4 commits intoxiaoymin:devfrom
nealwei2008:openapi3-and-aggregation

Conversation

@nealwei2008
Copy link

  1. 聚合模式下,增加前端返回字段:enableAggregation,方便前端可以动态判断当前模式,涉及项目:
    1.1 knife4j-aggregation-jakarta-spring-boot-starter,依赖原有properties配置:knife4j.enableAggregation,修改配置默认值:true
    1.2 knife4j-gateway-spring-boot-starter,依赖原有properties配置:knife4j.gateway.enabled,修改配置默认值:true
  2. knife4j-vue 的修改
    2.1 根据swagger-config的enableAggregation字段,动态兼容aggregation模式和单项目模式,默认为单项目模式。并修复之前存在的两种模式下逻辑混乱的问题
    2.2 修复在single模式下,basePath、contextPath、servicePath的部分逻辑混乱,兼容nginx或gateway等进行路由分发的场景。修复之前存在的被反向代理之后basePath判断错误导致的 /v3/api-docs 404 的问题
  3. 重新打包knife-vue并更新knife4j-openapi3-ui
  4. 修正knife-dependencies中的依赖版本错误

@netlify
Copy link

netlify bot commented Dec 19, 2025

Deploy Preview for knife4j failed.

Name Link
🔨 Latest commit 76aa5d6
🔍 Latest deploy log https://app.netlify.com/projects/knife4j/deploys/6944b62449568b00080ad8a3

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

Successfully merging this pull request may close these issues.

1 participant