SpringMVC加载WebApplicationContext源码分析

本文分析了SpringMVC中WebApplicationContext的加载机制,详细解释了三种初始化方式,并对比了classpath*:与classpath:的区别,最后深入探讨了WebApplicationContext的刷新过程。
[size=large][color=red][b]SpringMVC加载WebApplicationContext源码分析[/b][/color][/size]

[url]http://blessht.iteye.com/blog/2121845[/url]


[size=large][color=red][b]WebApplicationContext初始化的三种方式[/b][/color][/size]
[url]http://blog.youkuaiyun.com/lmb55/article/details/50510547[/url]

[size=large][color=red][b]Spring核心技术(十)——JSR-330标准注解[/b][/color][/size]
[url]http://blog.youkuaiyun.com/ethanwhite/article/details/51879871[/url]

[size=large][color=red][b]spring import resource classpath*:和class:的区别[/b][/color][/size]
A方式
<import resource="classpath*:config/**/spring*.xml" /> 

B方式比A方式少个*
<import resource="classpath:config/**/spring*.xml" />  

两个配置只有一个字符之差,项目启动时使用B方式就启动不了,报service未加载
实际使用B方式,在spring里为精确匹配,不能匹配通配符,A方式才可以配匹通配符
[url]http://powertech.iteye.com/blog/2234543[/url]

[size=large][color=red][b]Spring WebApplicationContext 准备刷新过程[/b][/color][/size]
[url]http://blog.youkuaiyun.com/boy_jiaojian/article/details/41620731[/url]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值