Package org.bremersee.web.reactive
Class CorsAutoConfiguration
- java.lang.Object
-
- org.bremersee.web.reactive.CorsAutoConfiguration
-
- All Implemented Interfaces:
org.springframework.web.reactive.config.WebFluxConfigurer
@ConditionalOnWebApplication(type=REACTIVE) @EnableConfigurationProperties(CorsProperties.class) @Configuration public class CorsAutoConfiguration extends Object implements org.springframework.web.reactive.config.WebFluxConfigurer
The cors auto configuration.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description CorsAutoConfiguration(CorsProperties properties)
Instantiates a new cors auto configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCorsMappings(org.springframework.web.reactive.config.CorsRegistry corsRegistry)
void
init()
Init.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.web.reactive.config.WebFluxConfigurer
addFormatters, addResourceHandlers, configureArgumentResolvers, configureContentTypeResolver, configureHttpMessageCodecs, configurePathMatching, configureViewResolvers, getMessageCodesResolver, getValidator, getWebSocketService
-
-
-
-
Constructor Detail
-
CorsAutoConfiguration
public CorsAutoConfiguration(CorsProperties properties)
Instantiates a new cors auto configuration.- Parameters:
properties
- the cors properties
-
-
Method Detail
-
init
@EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) public void init()
Init.
-
addCorsMappings
public void addCorsMappings(@NonNull org.springframework.web.reactive.config.CorsRegistry corsRegistry)
- Specified by:
addCorsMappings
in interfaceorg.springframework.web.reactive.config.WebFluxConfigurer
-
-