2021
09-24
09-24
SpringBoot搭建全局异常拦截
目录2.controller测试3.启动springboot工程4.测试5.基于Springboot自身的全局异常统一处理6.AOP也可以实现异常的全局处理1.异常拦截类的创建packagecom.liqi.web.core.exception;importorg.springframework.web.bind.annotation.ExceptionHandler;importorg.springframework.web.bind.annotation.ResponseBody;importorg.springframework.web.bind.annotation.RestControllerAdvice;...
继续阅读 >