public class CorsBeanDefinitionParser extends Object implements org.springframework.beans.factory.xml.BeanDefinitionParser
BeanDefinitionParser
that parses a
cors
element in order to set the CORS configuration in the various
{AbstractHandlerMapping} beans created by AnnotationDrivenBeanDefinitionParser
,
ResourcesBeanDefinitionParser
and ViewControllerBeanDefinitionParser
.Constructor and Description |
---|
CorsBeanDefinitionParser() |
Modifier and Type | Method and Description |
---|---|
org.springframework.beans.factory.config.BeanDefinition |
parse(Element element,
org.springframework.beans.factory.xml.ParserContext parserContext) |
@Nullable public org.springframework.beans.factory.config.BeanDefinition parse(Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
parse
in interface org.springframework.beans.factory.xml.BeanDefinitionParser