|
@@ -1,20 +1,19 @@
|
|
|
package com.poyee.exception;
|
|
package com.poyee.exception;
|
|
|
|
|
|
|
|
|
|
+import com.auth0.jwt.exceptions.JWTVerificationException;
|
|
|
|
|
+import com.auth0.jwt.exceptions.TokenExpiredException;
|
|
|
import com.poyee.res.Result;
|
|
import com.poyee.res.Result;
|
|
|
import com.poyee.utils.I18nUtil;
|
|
import com.poyee.utils.I18nUtil;
|
|
|
import com.poyee.utils.ServletUtils;
|
|
import com.poyee.utils.ServletUtils;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.springframework.validation.ObjectError;
|
|
|
|
|
-import org.springframework.web.bind.MethodArgumentNotValidException;
|
|
|
|
|
-import org.springframework.web.bind.annotation.ExceptionHandler;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RestControllerAdvice;
|
|
|
|
|
-
|
|
|
|
|
-import com.auth0.jwt.exceptions.JWTVerificationException;
|
|
|
|
|
-import com.auth0.jwt.exceptions.TokenExpiredException;
|
|
|
|
|
import org.springframework.http.converter.HttpMessageNotReadableException;
|
|
import org.springframework.http.converter.HttpMessageNotReadableException;
|
|
|
|
|
+import org.springframework.validation.ObjectError;
|
|
|
import org.springframework.web.HttpMediaTypeNotSupportedException;
|
|
import org.springframework.web.HttpMediaTypeNotSupportedException;
|
|
|
import org.springframework.web.HttpRequestMethodNotSupportedException;
|
|
import org.springframework.web.HttpRequestMethodNotSupportedException;
|
|
|
|
|
+import org.springframework.web.bind.MethodArgumentNotValidException;
|
|
|
import org.springframework.web.bind.MissingServletRequestParameterException;
|
|
import org.springframework.web.bind.MissingServletRequestParameterException;
|
|
|
|
|
+import org.springframework.web.bind.annotation.ExceptionHandler;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RestControllerAdvice;
|
|
|
import org.springframework.web.method.annotation.MethodArgumentTypeMismatchException;
|
|
import org.springframework.web.method.annotation.MethodArgumentTypeMismatchException;
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|