spring xml 命名空间关系

最近仔细看了一下spring 加载xml的流程,其中漏掉的一个环境,就是命名空间与类解析对应上的一个环节就在于:
org.springframework.beans.factory.xml.NamespaceHandlerResolver.resolve(String)
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(Element, BeanDefinition)


org.springframework.beans.factory.xml.XmlReaderContext.getNamespaceHandlerResolver(){
this.namespaceHandlerResolver to string :以下
}

NamespaceHandlerResolverusingmappings{
http://www.springframework.org/schema/jdbc=org.springframework.jdbc.config.JdbcNamespaceHandler
http://www.springframework.org/schema/security/oauth2=org.springframework.security.oauth2.config.xml.OAuth2SecurityNamespaceHandler
http://www.springframework.org/schema/c=org.springframework.beans.factory.xml.SimpleConstructorNamespaceHandler
http://www.springframework.org/schema/aop=org.springframework.aop.config.AopNamespaceHandler
http://www.springframework.org/schema/util=org.springframework.beans.factory.xml.UtilNamespaceHandler
http://www.springframework.org/schema/mvc=org.springframework.web.servlet.config.MvcNamespaceHandler
http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring=com.googlecode.ehcache.annotations.config.AnnotationDrivenEhCacheNamespaceHandler
http://www.springframework.org/schema/p=org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler
http://www.springframework.org/schema/tx=org.springframework.transaction.config.TxNamespaceHandler

http://www.springframework.org/schema/cache=org.springframework.cache.config.CacheNamespaceHandler
http://www.springframework.org/schema/lang=org.springframework.scripting.config.LangNamespaceHandler
http://www.springframework.org/schema/task=org.springframework.scheduling.config.TaskNamespaceHandler
http://www.springframework.org/schema/context=org.springframework.context.config.ContextNamespaceHandler
http://www.springframework.org/schema/security=org.springframework.security.config.SecurityNamespaceHandler
http://www.springframework.org/schema/jee=org.springframework.ejb.config.JeeNamespaceHandler}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值