Skip to content

Commit

Permalink
feat: use name
Browse files Browse the repository at this point in the history
  • Loading branch information
llnancy committed Oct 15, 2024
1 parent 788c8dc commit fb4c79d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.security.core.AuthenticationException;

/**
* {@link IExceptionHandler} configuration
Expand All @@ -27,7 +26,7 @@ public BindExceptionHandler bindExceptionHandler() {
}

@Bean
@ConditionalOnClass({AuthenticationException.class})
@ConditionalOnClass(name = {"org.springframework.security.core.AuthenticationException"})
public AuthenticationExceptionHandler authenticationExceptionHandler() {
return new AuthenticationExceptionHandler();
}
Expand Down

0 comments on commit fb4c79d

Please sign in to comment.