@Configuration
@Import(value={springfox.documentation.spring.web.SpringfoxWebMvcConfiguration.class,springfox.documentation.swagger.configuration.SwaggerCommonConfiguration.class})
@ComponentScan(basePackages="springfox.documentation.swagger2.mappers")
@ConditionalOnWebApplication
public class Swagger2DocumentationConfiguration
extends Object
| 构造器和说明 |
|---|
Swagger2DocumentationConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.web.servlet.HandlerMapping |
swagger2ControllerMapping(org.springframework.core.env.Environment environment,
DocumentationCache documentationCache,
ServiceModelToSwagger2Mapper mapper,
JsonSerializer jsonSerializer) |
JacksonModuleRegistrar |
swagger2Module() |
@Bean public JacksonModuleRegistrar swagger2Module()
@Bean
public org.springframework.web.servlet.HandlerMapping swagger2ControllerMapping(org.springframework.core.env.Environment environment,
DocumentationCache documentationCache,
ServiceModelToSwagger2Mapper mapper,
JsonSerializer jsonSerializer)
Copyright © 2022. All rights reserved.