spring的统一异常处理

在控制器(controller)中添加统一异常处理的方法,在方法前面加@ExceptionHandler[(异常类.class)]注解

posted @ 2018-01-07 20:21  admin_jh  阅读(133)  评论(0编辑  收藏  举报