springMVC.xml与springContext.xml关系与区别

springContext 是mvc context 的父容器,mvc context容器可以引用applicationContext的bean,但是,applicationContext中无法引用mvc context中的bean。
所以在使用时,一定要注意。

特别案例:
在使用aop 时,如果在applicationContext中配置了 aop ,那么在 springMVC 的controller不会对该层的函数进行拦截



猜你喜欢

转载自sanniangmiao.iteye.com/blog/2264000