swagger 5.15.0 knife4j 4.5.0
This commit is contained in:
@@ -45,6 +45,7 @@ import org.springframework.http.converter.HttpMessageConverter;
|
||||
import org.springframework.http.converter.StringHttpMessageConverter;
|
||||
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
|
||||
import org.springframework.http.converter.xml.MarshallingHttpMessageConverter;
|
||||
import org.springframework.http.converter.ByteArrayHttpMessageConverter;
|
||||
import org.springframework.oxm.jaxb.Jaxb2Marshaller;
|
||||
import org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
@@ -197,6 +198,10 @@ public class MvcAutoConfiguration implements WebMvcConfigurer {
|
||||
StringHttpMessageConverter stringHttpMessageConverter,
|
||||
RequestMappingHandlerAdapter requestMappingHandlerAdapter) {
|
||||
List<HttpMessageConverter<?>> httpMessageConverterList = new ArrayList<>();
|
||||
//需要追加byte,否则springdoc-openapi接口会响应Base64编码内容,导致接口文档显示失败
|
||||
// https://github.com/springdoc/springdoc-openapi/issues/2143
|
||||
// 解决方案
|
||||
httpMessageConverterList.add(new ByteArrayHttpMessageConverter());
|
||||
httpMessageConverterList.add(mappingJacksonHttpMessageConverter);
|
||||
httpMessageConverterList.add(marshallingHttpMessageConverter);
|
||||
httpMessageConverterList.add(stringHttpMessageConverter);
|
||||
|
||||
@@ -65,7 +65,7 @@ public class SwaggerAutoConfiguration {
|
||||
"/api/oauth/v20/me"
|
||||
|
||||
};
|
||||
String[] packagedToMatch = { "org.maxkey.authz" };
|
||||
String[] packagedToMatch = { "org.dromara.maxkey.authz" };
|
||||
return GroupedOpenApi.builder().group(title)
|
||||
.pathsToMatch(paths)
|
||||
.packagesToScan(packagedToMatch).build();
|
||||
@@ -79,7 +79,7 @@ public class SwaggerAutoConfiguration {
|
||||
.title(title)
|
||||
.description(description)
|
||||
.version(version)
|
||||
.termsOfService("http://www.maxkey.top/")
|
||||
.termsOfService("https://www.maxkey.top/")
|
||||
.license(
|
||||
new License()
|
||||
.name("Apache License, Version 2.0")
|
||||
@@ -89,7 +89,7 @@ public class SwaggerAutoConfiguration {
|
||||
externalDocs(
|
||||
new ExternalDocumentation()
|
||||
.description("MaxKey.top contact support@maxsso.net")
|
||||
.url("http://www.maxkey.top/")
|
||||
.url("https://www.maxkey.top/")
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
BIN
maxkey-core/src/main/resources/favicon.ico
Normal file
BIN
maxkey-core/src/main/resources/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
Reference in New Issue
Block a user