![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
J2EE
文章平均质量分 77
kollyQAQ
这个作者很懒,什么都没留下…
展开
-
web.xml中classpath的理解
简单理解,classpath就是代表 /WEB-INF /classes/ 这个路径(如果不理解该路径,就把一个web工程发布为war包,然后用winrar查看其包内路径就理解啦)常用的场景:在SSH架构中,配置Spring的上下文环境: contextConfigLocation原创 2016-04-01 11:01:29 · 448 阅读 · 0 评论 -
Spring中的@ControllerAdvice注解配合@ExceptionHandler使用实现异常处理
@ControllerAdvice,是spring3.2提供的新注解,从名字上可以看出大体意思是控制器增强。让我们先看看@ControllerAdvice的实现:原创 2016-04-05 14:16:00 · 10713 阅读 · 0 评论