yshop1.9.2,修复修复素材库无法分页的、退款、角色等问题明细可以登陆演示后台查看

This commit is contained in:
hupeng
2020-01-31 18:04:56 +08:00
parent 97dbcde392
commit fd182495fb
7 changed files with 49 additions and 33 deletions

View File

@ -6,8 +6,8 @@ import org.springframework.http.HttpStatus;
import static org.springframework.http.HttpStatus.BAD_REQUEST;
/**
* @author Zheng Jie
* @date 2018-11-23
* @author hupeng
* @date 2019-11-11
* 统一异常处理
*/
@Getter

View File

@ -28,6 +28,7 @@ public class GlobalExceptionHandler {
*/
@ExceptionHandler(Throwable.class)
public ResponseEntity<ApiError> handleException(Throwable e){
System.out.println("99999");
// 打印堆栈信息
log.error(ThrowableUtil.getStackTrace(e));
return buildResponseEntity(ApiError.error(e.getMessage()));
@ -49,6 +50,7 @@ public class GlobalExceptionHandler {
*/
@ExceptionHandler(value = BadRequestException.class)
public ResponseEntity<ApiError> badRequestException(BadRequestException e) {
System.out.println("88888");
// 打印堆栈信息
log.error(ThrowableUtil.getStackTrace(e));
return buildResponseEntity(ApiError.error(e.getStatus(),e.getMessage()));