This commit is contained in:
2025-04-19 14:32:41 +08:00
commit d60df6d712
33 changed files with 1181 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
package com.ping.study.config;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
@RestControllerAdvice
public class GlobalException {
@ExceptionHandler(Exception.class)
public Object handleException(Exception e) {
e.printStackTrace();
return e.getMessage();
}
}