类 CorsBeanDefinitionParser
- java.lang.Object
- org.springframework.web.servlet.config.CorsBeanDefinitionParser
- 所有已实现的接口:
BeanDefinitionParser
public class CorsBeanDefinitionParser extends Object implements BeanDefinitionParser
BeanDefinitionParser
that parses acors
element in order to set the CORS configuration in the various {AbstractHandlerMapping} beans created byAnnotationDrivenBeanDefinitionParser
,ResourcesBeanDefinitionParser
andViewControllerBeanDefinitionParser
.- 从以下版本开始:
- 4.2
- 作者:
- Sebastien Deleuze
构造器概要
构造器 构造器 说明 CorsBeanDefinitionParser()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BeanDefinition
parse(Element element, ParserContext parserContext)
Parse the specifiedElement
and register the resultingBeanDefinition(s)
with theBeanDefinitionRegistry
embedded in the suppliedParserContext
.
构造器详细资料
CorsBeanDefinitionParser
public CorsBeanDefinitionParser()
方法详细资料
parse
public BeanDefinition parse(Element element, ParserContext parserContext)
从接口复制的说明:BeanDefinitionParser
Parse the specifiedElement
and register the resultingBeanDefinition(s)
with theBeanDefinitionRegistry
embedded in the suppliedParserContext
.Implementations must return the primary
BeanDefinition
that results from the parse if they will ever be used in a nested fashion (for example as an inner tag in a<property/>
tag). Implementations may returnnull
if they will not be used in a nested fashion.- 指定者:
parse
在接口中BeanDefinitionParser
- 参数:
element
- the element that is to be parsed into one or moreBeanDefinitions
parserContext
- the object encapsulating the current state of the parsing process; provides access to aBeanDefinitionRegistry
- 返回:
- the primary
BeanDefinition