@Configuration
@EnableConfigurationProperties(value={ZiyiSpringdocProperties.class,ZiyiSwaggerProperties.class})
@ConditionalOnClass(value=org.springdoc.webmvc.core.SpringDocWebMvcConfiguration.class)
public class ZiyiSpringdocAutoConfiguration
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
| 构造器和说明 |
|---|
ZiyiSpringdocAutoConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
通用拦截器排除swagger设置,所有拦截器都会自动加swagger相关的资源排除信息
|
io.swagger.v3.oas.models.OpenAPI |
ziyiOpenApi(ZiyiSwaggerProperties swaggerProperties)
Ziyi Boot 自定义OpenAPI
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddArgumentResolvers, addCorsMappings, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(name="ziyi.doc.swagger.auto",
havingValue="true",
matchIfMissing=true)
public io.swagger.v3.oas.models.OpenAPI ziyiOpenApi(ZiyiSwaggerProperties swaggerProperties)
swaggerProperties - swagger 配置信息OpenAPIpublic void addInterceptors(@Nonnull org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
addInterceptors 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerCopyright © 2022. All rights reserved.