@Configuration @ConditionalOnClass(name="springfox.documentation.spring.web.SpringfoxWebMvcConfiguration") @Import(value={SpringfoxWebConfiguration.class,SpringfoxWebMvcConfiguration.class,SwaggerCommonConfiguration.class}) @ComponentScan(basePackages={"springfox.documentation.swagger2.readers.parameter","springfox.documentation.swagger2.mappers"}) public class Swagger2DocumentationWebMvcConfiguration extends java.lang.Object
Constructor and Description |
---|
Swagger2DocumentationWebMvcConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.web.servlet.HandlerMapping |
swagger2ControllerMapping(org.springframework.core.env.Environment environment,
DocumentationCache documentationCache,
ServiceModelToSwagger2Mapper mapper,
JsonSerializer jsonSerializer) |
JacksonModuleRegistrar |
swagger2Module() |
public Swagger2DocumentationWebMvcConfiguration()
@Bean public JacksonModuleRegistrar swagger2Module()
@Bean public org.springframework.web.servlet.HandlerMapping swagger2ControllerMapping(org.springframework.core.env.Environment environment, DocumentationCache documentationCache, ServiceModelToSwagger2Mapper mapper, JsonSerializer jsonSerializer)