摘要: 1.SpringBoot2.x配置全局异常实战 讲解:服务端异常讲解和SpringBoot配置全局异常实战 1、默认异常测试 int i = 1/0,不友好 2、异常注解介绍 @ControllerAdvice 如果是返回json数据 则用 RestControllerAdvice,就可以不加 @R 阅读全文
posted @ 2019-01-07 23:26 清晨的第一抹阳光 阅读(153) 评论(0) 推荐(0)