修复oauth2启动报错
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user