mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-05-14 12:32:09 +08:00
swagger依赖升级
This commit is contained in:
@@ -45,6 +45,11 @@
|
|||||||
jakartaxmlbindapiVersion 4.0.4
|
jakartaxmlbindapiVersion 4.0.4
|
||||||
angusmailVersion 2.0.5
|
angusmailVersion 2.0.5
|
||||||
classmateVersion 1.7.1
|
classmateVersion 1.7.1
|
||||||
|
swaggerV3Version 2.2.41
|
||||||
|
classgraphVersion 4.8.184
|
||||||
|
webjarslocatorliteVersion 1.1.2
|
||||||
|
swaggeruiVersion 5.30.3
|
||||||
|
springdocVersion 2.8.14
|
||||||
|
|
||||||
MaxKey v 4.1.9 GA 2025/10/10
|
MaxKey v 4.1.9 GA 2025/10/10
|
||||||
*(MAXKEY-250501) #248 最新镜像 启动登陆异常
|
*(MAXKEY-250501) #248 最新镜像 启动登陆异常
|
||||||
|
|||||||
@@ -428,10 +428,8 @@ subprojects {
|
|||||||
implementation group: 'com.tencentcloudapi', name: 'tencentcloud-sdk-java', version: "${tencentcloudsdkjavaVersion}"
|
implementation group: 'com.tencentcloudapi', name: 'tencentcloud-sdk-java', version: "${tencentcloudsdkjavaVersion}"
|
||||||
//docs
|
//docs
|
||||||
implementation group: 'org.mapstruct', name: 'mapstruct', version: "${mapstructVersion}"
|
implementation group: 'org.mapstruct', name: 'mapstruct', version: "${mapstructVersion}"
|
||||||
implementation group: 'io.swagger.core.v3', name: 'swagger-annotations', version: "${swaggerV3Version}"
|
|
||||||
implementation group: 'io.swagger.core.v3', name: 'swagger-annotations-jakarta', version: "${swaggerV3Version}"
|
implementation group: 'io.swagger.core.v3', name: 'swagger-annotations-jakarta', version: "${swaggerV3Version}"
|
||||||
implementation group: 'io.swagger.core.v3', name: 'swagger-core-jakarta', version: "${swaggerV3Version}"
|
implementation group: 'io.swagger.core.v3', name: 'swagger-core-jakarta', version: "${swaggerV3Version}"
|
||||||
//implementation group: 'io.swagger.core.v3', name: 'swagger-models', version: "${swaggerV3Version}"
|
|
||||||
implementation group: 'io.swagger.core.v3', name: 'swagger-models-jakarta', version: "${swaggerV3Version}"
|
implementation group: 'io.swagger.core.v3', name: 'swagger-models-jakarta', version: "${swaggerV3Version}"
|
||||||
//springdoc
|
//springdoc
|
||||||
implementation group: 'io.github.classgraph', name: 'classgraph', version: "${classgraphVersion}"
|
implementation group: 'io.github.classgraph', name: 'classgraph', version: "${classgraphVersion}"
|
||||||
|
|||||||
@@ -203,13 +203,13 @@ JustAuthVersion =1.16.5
|
|||||||
simplehttpVersion =1.0.5
|
simplehttpVersion =1.0.5
|
||||||
casclientVersion =4.0.4
|
casclientVersion =4.0.4
|
||||||
#doc
|
#doc
|
||||||
swaggerV3Version =2.2.27
|
swaggerV3Version =2.2.41
|
||||||
classgraphVersion =4.8.179
|
classgraphVersion =4.8.184
|
||||||
webjarslocatorcoreVersion =0.59
|
webjarslocatorcoreVersion =0.59
|
||||||
webjarslocatorVersion =0.52
|
webjarslocatorVersion =0.52
|
||||||
webjarslocatorliteVersion =1.0.1
|
webjarslocatorliteVersion =1.1.2
|
||||||
swaggeruiVersion =5.18.2
|
swaggeruiVersion =5.30.3
|
||||||
springdocVersion =2.7.0
|
springdocVersion =2.8.14
|
||||||
knife4jVersion =4.5.0
|
knife4jVersion =4.5.0
|
||||||
#sdk
|
#sdk
|
||||||
aliyunjavasdkcoreVersion =4.6.4
|
aliyunjavasdkcoreVersion =4.6.4
|
||||||
|
|||||||
@@ -42,8 +42,8 @@ public class MvcResourceAutoConfiguration implements WebMvcConfigurer {
|
|||||||
.addResourceLocations("classpath:/templates/");
|
.addResourceLocations("classpath:/templates/");
|
||||||
|
|
||||||
logger.debug("add swagger");
|
logger.debug("add swagger");
|
||||||
registry.addResourceHandler("swagger-ui.html")
|
registry.addResourceHandler("/swagger-ui/**")
|
||||||
.addResourceLocations("classpath:/META-INF/resources/");
|
.addResourceLocations("classpath:/META-INF/resources/webjars/");
|
||||||
|
|
||||||
logger.debug("add knife4j");
|
logger.debug("add knife4j");
|
||||||
registry.addResourceHandler("doc.html")
|
registry.addResourceHandler("doc.html")
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ public class SwaggerAutoConfiguration {
|
|||||||
@Value("${springdoc.swagger-ui.enabled}")
|
@Value("${springdoc.swagger-ui.enabled}")
|
||||||
boolean enable;
|
boolean enable;
|
||||||
|
|
||||||
@Bean
|
/*@Bean
|
||||||
GlobalOpenApiCustomizer orderGlobalOpenApiCustomizer() {
|
GlobalOpenApiCustomizer orderGlobalOpenApiCustomizer() {
|
||||||
return openApi -> {
|
return openApi -> {
|
||||||
if (openApi.getTags()!=null){
|
if (openApi.getTags()!=null){
|
||||||
@@ -50,7 +50,7 @@ public class SwaggerAutoConfiguration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}*/
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
GroupedOpenApi userApi(){
|
GroupedOpenApi userApi(){
|
||||||
@@ -67,8 +67,8 @@ public class SwaggerAutoConfiguration {
|
|||||||
"/api/oauth/v20/me"
|
"/api/oauth/v20/me"
|
||||||
|
|
||||||
};
|
};
|
||||||
String[] packagedToMatch = { "org.dromara.maxkey.authz" };
|
String[] packagedToMatch = { "org.dromara.maxkey" };
|
||||||
_logger.debug("OpenApi enable {}",enable);
|
_logger.debug("swagger-ui enable {}",enable);
|
||||||
if(enable) {
|
if(enable) {
|
||||||
return GroupedOpenApi.builder().group(title)
|
return GroupedOpenApi.builder().group(title)
|
||||||
.pathsToMatch(paths)
|
.pathsToMatch(paths)
|
||||||
|
|||||||
@@ -293,15 +293,14 @@ maxkey.swagger.title =MaxKey\u5355\u70b9\u767b\u5f55\
|
|||||||
maxkey.swagger.description =MaxKey\u5355\u70b9\u767b\u5f55\u8ba4\u8bc1\u7cfb\u7edfAPI\u6587\u6863
|
maxkey.swagger.description =MaxKey\u5355\u70b9\u767b\u5f55\u8ba4\u8bc1\u7cfb\u7edfAPI\u6587\u6863
|
||||||
maxkey.swagger.version =${application.formatted-version}
|
maxkey.swagger.version =${application.formatted-version}
|
||||||
|
|
||||||
|
springdoc.api-docs.version =OPENAPI_3_0
|
||||||
|
springdoc.api-docs.path =/swagger-ui/v3/api-docs
|
||||||
|
springdoc.api-docs.enabled =true
|
||||||
springdoc.swagger-ui.path =/swagger-ui.html
|
springdoc.swagger-ui.path =/swagger-ui.html
|
||||||
springdoc.swagger-ui.enabled =true
|
springdoc.swagger-ui.enabled =true
|
||||||
|
springdoc.swagger-ui.showExtensions =true
|
||||||
springdoc.swagger-ui.tags-sorter =alpha
|
springdoc.swagger-ui.tags-sorter =alpha
|
||||||
springdoc.swagger-ui.operations-sorter =alpha
|
springdoc.swagger-ui.operations-sorter =alpha
|
||||||
springdoc.swagger-ui.showExtensions =true
|
|
||||||
springdoc.api-docs.path =/v3/api-docs
|
|
||||||
#springdoc.group-configs[0].group =default
|
|
||||||
#springdoc.group-configs[0].paths-to-match =/*
|
|
||||||
#springdoc.group-configs[0].packages-to-scan =org.dromara.maxkey
|
|
||||||
|
|
||||||
knife4j.enable =true
|
knife4j.enable =true
|
||||||
knife4j.setting.language =ZH_CN
|
knife4j.setting.language =ZH_CN
|
||||||
|
|||||||
@@ -221,15 +221,14 @@ maxkey.swagger.title =MaxKey\u5355\u70b9\u767b\u5f55\
|
|||||||
maxkey.swagger.description =MaxKey\u5355\u70b9\u767b\u5f55\u8ba4\u8bc1\u7cfb\u7edfAPI\u6587\u6863
|
maxkey.swagger.description =MaxKey\u5355\u70b9\u767b\u5f55\u8ba4\u8bc1\u7cfb\u7edfAPI\u6587\u6863
|
||||||
maxkey.swagger.version =${application.formatted-version}
|
maxkey.swagger.version =${application.formatted-version}
|
||||||
|
|
||||||
|
springdoc.api-docs.version =OPENAPI_3_0
|
||||||
|
springdoc.api-docs.path =/swagger-ui/v3/api-docs
|
||||||
|
springdoc.api-docs.enabled =true
|
||||||
springdoc.swagger-ui.path =/swagger-ui.html
|
springdoc.swagger-ui.path =/swagger-ui.html
|
||||||
springdoc.swagger-ui.enabled =true
|
springdoc.swagger-ui.enabled =true
|
||||||
|
springdoc.swagger-ui.showExtensions =true
|
||||||
springdoc.swagger-ui.tags-sorter =alpha
|
springdoc.swagger-ui.tags-sorter =alpha
|
||||||
springdoc.swagger-ui.operations-sorter =alpha
|
springdoc.swagger-ui.operations-sorter =alpha
|
||||||
springdoc.swagger-ui.showExtensions =true
|
|
||||||
springdoc.api-docs.path =/v3/api-docs
|
|
||||||
#springdoc.group-configs[0].group =default
|
|
||||||
#springdoc.group-configs[0].paths-to-match =/*
|
|
||||||
#springdoc.group-configs[0].packages-to-scan =org.dromara.maxkey
|
|
||||||
|
|
||||||
knife4j.enable =true
|
knife4j.enable =true
|
||||||
knife4j.setting.language =ZH_CN
|
knife4j.setting.language =ZH_CN
|
||||||
|
|||||||
@@ -219,15 +219,14 @@ maxkey.swagger.title =MaxKey\u5355\u70b9\u767b\u5f55\
|
|||||||
maxkey.swagger.description =MaxKey\u5355\u70b9\u767b\u5f55\u8ba4\u8bc1\u7cfb\u7edfAPI\u6587\u6863
|
maxkey.swagger.description =MaxKey\u5355\u70b9\u767b\u5f55\u8ba4\u8bc1\u7cfb\u7edfAPI\u6587\u6863
|
||||||
maxkey.swagger.version =${application.formatted-version}
|
maxkey.swagger.version =${application.formatted-version}
|
||||||
|
|
||||||
|
springdoc.api-docs.version =OPENAPI_3_0
|
||||||
|
springdoc.api-docs.path =/swagger-ui/v3/api-docs
|
||||||
|
springdoc.api-docs.enabled =true
|
||||||
springdoc.swagger-ui.path =/swagger-ui.html
|
springdoc.swagger-ui.path =/swagger-ui.html
|
||||||
springdoc.swagger-ui.enabled =true
|
springdoc.swagger-ui.enabled =true
|
||||||
|
springdoc.swagger-ui.showExtensions =true
|
||||||
springdoc.swagger-ui.tags-sorter =alpha
|
springdoc.swagger-ui.tags-sorter =alpha
|
||||||
springdoc.swagger-ui.operations-sorter =alpha
|
springdoc.swagger-ui.operations-sorter =alpha
|
||||||
springdoc.swagger-ui.showExtensions =true
|
|
||||||
springdoc.api-docs.path =/v3/api-docs
|
|
||||||
#springdoc.group-configs[0].group =default
|
|
||||||
#springdoc.group-configs[0].paths-to-match =/*
|
|
||||||
#springdoc.group-configs[0].packages-to-scan =org.dromara.maxkey
|
|
||||||
|
|
||||||
knife4j.enable =true
|
knife4j.enable =true
|
||||||
knife4j.setting.language =ZH_CN
|
knife4j.setting.language =ZH_CN
|
||||||
|
|||||||
Reference in New Issue
Block a user