类 GybytControllerSecurityExceptionAdvice


  • @Order(-100)
    @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 MethodArgumentNotValidExceptionHandler​(org.springframework.security.authentication.BadCredentialsException e)
      • MethodArgumentNotValidExceptionHandler

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

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

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

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

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

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

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