Update knife4j-vue to auto-adapt aggregation mode and single mode#979
Open
nealwei2008 wants to merge 4 commits intoxiaoymin:devfrom
Open
Update knife4j-vue to auto-adapt aggregation mode and single mode#979nealwei2008 wants to merge 4 commits intoxiaoymin:devfrom
nealwei2008 wants to merge 4 commits intoxiaoymin:devfrom
Conversation
added 4 commits
December 19, 2025 09:39
❌ Deploy Preview for knife4j failed.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.1 根据swagger-config的enableAggregation字段,动态兼容aggregation模式和单项目模式,默认为单项目模式。并修复之前存在的两种模式下逻辑混乱的问题
2.2 修复在single模式下,basePath、contextPath、servicePath的部分逻辑混乱,兼容nginx或gateway等进行路由分发的场景。修复之前存在的被反向代理之后basePath判断错误导致的 /v3/api-docs 404 的问题