修复oauth2启动报错

This commit is contained in:
liaozetao
2024-04-11 09:56:06 +08:00
committed by khalil
parent bf87b44818
commit 83262089bc

View File

@@ -6,7 +6,6 @@ import lombok.extern.slf4j.Slf4j;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.TypeMismatchException;
import org.springframework.http.converter.HttpMessageNotReadableException;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindException;
import org.springframework.validation.FieldError;
@@ -72,11 +71,7 @@ public class GlobalExceptionHandler {
* @param exception 异常
* @return BusiResult
*/
@ExceptionHandler({
HttpMessageNotReadableException.class,
MethodArgumentNotValidException.class,
BindException.class
})
@ExceptionHandler(MethodArgumentNotValidException.class)
public BusiResult<Void> handle(
HttpServletRequest request, MethodArgumentNotValidException exception) {
logErrorMessage(request, exception);