public class SwaggerConfiguration extends ApiInfoDocketFactory implements org.springframework.context.EnvironmentAware
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
SwaggerConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
docket(List<SwaggerProperties> properties,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
注册多个docket bean
通过List中的上限注册个数
|
void |
setEnvironment(org.springframework.core.env.Environment environment) |
apiInfo, apiSelector, registerBean, registerBeanDefinitionspublic void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment 在接口中 org.springframework.context.EnvironmentAwarepublic void docket(List<SwaggerProperties> properties, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
DocketFactorydocket 在接口中 DocketFactoryproperties - 多个配置registry - 注册bean的工具Copyright © 2018. All rights reserved.