会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
大象踢足球
博客园
首页
新随笔
联系
订阅
管理
2018年2月7日
@ControllerAdvice 拦截异常并统一处理(转载)
摘要: 在spring 3.2中,新增了@ControllerAdvice 注解,可以用于定义@ExceptionHandler、@InitBinder、@ModelAttribute,并应用到所有@RequestMapping中。 一、介绍 创建 MyControllerAdvice,并添加 @Contr
阅读全文
posted @ 2018-02-07 15:45 大象踢足球
阅读(222)
评论(0)
推荐(0)
编辑
公告