Package io.swagger.configuration
Class SwaggerUiConfiguration
java.lang.Object
org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
io.swagger.configuration.SwaggerUiConfiguration
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen",
date="2022-04-07T11:18:33.522020705Z[Etc/UTC]")
@Configuration
@ComponentScan(basePackages="dev.vality.swag.messages.api")
@EnableWebMvc
@EnableSwagger2
@PropertySource("classpath:swagger.properties")
@Import(SwaggerDocumentationConfig.class)
public class SwaggerUiConfiguration
extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
-
Constructor Summary
Constructors Constructor Description SwaggerUiConfiguration() -
Method Summary
Modifier and Type Method Description voidaddResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)org.springframework.http.converter.json.Jackson2ObjectMapperBuilderbuilder()voidconfigureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)com.fasterxml.jackson.databind.ObjectMapperobjectMapper()Methods inherited from class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Constructor Details
-
SwaggerUiConfiguration
public SwaggerUiConfiguration()
-
-
Method Details
-
addResourceHandlers
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)- Specified by:
addResourceHandlersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer- Overrides:
addResourceHandlersin classorg.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
-
builder
@Bean public org.springframework.http.converter.json.Jackson2ObjectMapperBuilder builder() -
configureMessageConverters
public void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)- Specified by:
configureMessageConvertersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer- Overrides:
configureMessageConvertersin classorg.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
-
objectMapper
@Bean public com.fasterxml.jackson.databind.ObjectMapper objectMapper()
-