@ConditionalOnNotEnvProduction @ConditionalOnWebApplication @Configuration @Import(value={springfox.documentation.spring.web.SpringfoxWebMvcConfiguration.class,springfox.documentation.swagger.configuration.SwaggerCommonConfiguration.class,ManagementConfiguration.class,NoManagementConfiguration.class}) @ComponentScan(basePackages={"springfox.documentation.swagger2.readers.parameter","springfox.documentation.swagger2.web","springfox.documentation.swagger2.mappers"}) public class Swagger2DocumentationAutoConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DOCKET_APPLICATION |
com.google.common.base.Predicate<String> |
managementPaths |
Constructor and Description |
---|
Swagger2DocumentationAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
springfox.documentation.spring.web.plugins.Docket |
docketApplication() |
springfox.documentation.spring.web.json.JacksonModuleRegistrar |
swagger2Module() |
public static final String DOCKET_APPLICATION
@Qualifier(value="MANAGEMENT_PATHS") @Autowired public com.google.common.base.Predicate<String> managementPaths
public Swagger2DocumentationAutoConfiguration()
@Bean public springfox.documentation.spring.web.json.JacksonModuleRegistrar swagger2Module()
@ConditionalOnMissingBean(name="docketApplication") @Bean(name="docketApplication") public springfox.documentation.spring.web.plugins.Docket docketApplication()
Copyright © 2017. All rights reserved.