Class WebConfiguration
java.lang.Object
org.ehrbase.application.config.web.WebConfiguration
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration(proxyBeanMethods=false)
@EnableConfigurationProperties(CorsProperties.class)
public class WebConfiguration
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
Configuration from Spring Web MVC.-
Constructor Summary
ConstructorsConstructorDescriptionWebConfiguration(CorsProperties properties, AuditInterceptorHandler auditInterceptorHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry registry) voidaddFormatters(org.springframework.format.FormatterRegistry registry) voidaddInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) voidconfigurePathMatch(org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Constructor Details
-
WebConfiguration
-
-
Method Details
-
addFormatters
public void addFormatters(org.springframework.format.FormatterRegistry registry) - Specified by:
addFormattersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addCorsMappings
public void addCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry registry) - Specified by:
addCorsMappingsin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addInterceptors
public void addInterceptors(@NonNull org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) - Specified by:
addInterceptorsin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
configurePathMatch
public void configurePathMatch(org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer) - Specified by:
configurePathMatchin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-