|
@@ -67,7 +67,7 @@ public class GlobalExceptionHandler {
|
|
|
@ExceptionHandler(Exception.class)
|
|
@ExceptionHandler(Exception.class)
|
|
|
public ResponseDTO<?> exceptionHandler(Exception e) {
|
|
public ResponseDTO<?> exceptionHandler(Exception e) {
|
|
|
log.error("error: {} Cause {} ", e.getMessage(), e.getCause());
|
|
log.error("error: {} Cause {} ", e.getMessage(), e.getCause());
|
|
|
-// e.printStackTrace();
|
|
|
|
|
|
|
+ e.printStackTrace();
|
|
|
// http 请求方式错误
|
|
// http 请求方式错误
|
|
|
if (e instanceof HttpRequestMethodNotSupportedException) {
|
|
if (e instanceof HttpRequestMethodNotSupportedException) {
|
|
|
return ResponseDTO.error(ResultCode.REQUEST_METHOD_ERROR);
|
|
return ResponseDTO.error(ResultCode.REQUEST_METHOD_ERROR);
|