spring
POPEYE_LI
Stay Hungry, Stay Foolish
展开
-
Spring MVC 解读——<mvc:annotation-driven/>
Spring MVC 解读—— 一、AnnotationDrivenBeanDefinitionParser 通常如果我们希望通过注解的方式来进行Spring MVC开发,我们都会在***-servlet.xml中加入标签来告诉Spring我们的目的。但是我们为什么这么做呢?这个标签是什么意思呢?它做了什么呢? 同样为了弄清楚这些问题, 像标签一样,我们先找到转载 2015-09-25 20:39:24 · 339 阅读 · 0 评论 -
MVC的拦截器
MVC的拦截器 经本人在Spring mvc中对方案1和方案2的测试表明,并没有拦截静态资源,所以可以放心使用方案1和方案2,方案3可以放弃,并且可以放心使用注解。 方案一,(近似)总拦截器,拦截所有url mvc:interceptors> bean class="com.app.mvc.MyInteceptor" /> mvc:interceptors>转载 2015-09-25 19:54:24 · 235 阅读 · 0 评论