程序包 cn.gybyt.advice

类 GybytControllerSecurityExceptionAdvice


  • @Order(-2147483648)
    @RestControllerAdvice
    @ConditionalOnClass(org.springframework.security.access.expression.SecurityExpressionHandler.class)
    public class GybytControllerSecurityExceptionAdvice
    extends Object
    security异常处理
    • 构造器详细资料

      • GybytControllerSecurityExceptionAdvice

        public GybytControllerSecurityExceptionAdvice()
    • 方法详细资料

      • MethodArgumentNotValidExceptionHandler

        @ExceptionHandler(org.springframework.security.core.AuthenticationException.class)
        public BaseResponse<Object> MethodArgumentNotValidExceptionHandler​(org.springframework.security.authentication.BadCredentialsException e)
      • MethodArgumentNotValidExceptionHandler

        @ExceptionHandler(org.springframework.security.access.AccessDeniedException.class)
        public BaseResponse<Object> MethodArgumentNotValidExceptionHandler​(org.springframework.security.access.AccessDeniedException e)
      • LockedException

        @ExceptionHandler(org.springframework.security.authentication.LockedException.class)
        public BaseResponse<Object> LockedException​(org.springframework.security.authentication.LockedException e)
      • CredentialsExpiredException

        @ExceptionHandler(org.springframework.security.authentication.CredentialsExpiredException.class)
        public BaseResponse<Object> CredentialsExpiredException​(org.springframework.security.authentication.CredentialsExpiredException e)
      • AccountExpiredException

        @ExceptionHandler(org.springframework.security.authentication.AccountExpiredException.class)
        public BaseResponse<Object> AccountExpiredException​(org.springframework.security.authentication.AccountExpiredException e)
      • DisabledException

        @ExceptionHandler(org.springframework.security.authentication.DisabledException.class)
        public BaseResponse<Object> DisabledException​(org.springframework.security.authentication.DisabledException e)
      • BadCredentialsException

        @ExceptionHandler(org.springframework.security.authentication.BadCredentialsException.class)
        public BaseResponse<Object> BadCredentialsException​(org.springframework.security.authentication.BadCredentialsException e)
      • InternalAuthenticationServiceException

        @ExceptionHandler(org.springframework.security.authentication.InternalAuthenticationServiceException.class)
        public BaseResponse<Object> InternalAuthenticationServiceException​(org.springframework.security.authentication.InternalAuthenticationServiceException e)