From d23f283598f799d97ecb7fd8c0cf28c0988d63bf Mon Sep 17 00:00:00 2001 From: Xi Minghui Date: Wed, 4 Sep 2024 01:55:01 +0800 Subject: [PATCH] Corrected AuthenticationEventPublisher Type --- docs/modules/ROOT/pages/servlet/authentication/events.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/modules/ROOT/pages/servlet/authentication/events.adoc b/docs/modules/ROOT/pages/servlet/authentication/events.adoc index 59ad12f0d9..0895f53b04 100644 --- a/docs/modules/ROOT/pages/servlet/authentication/events.adoc +++ b/docs/modules/ROOT/pages/servlet/authentication/events.adoc @@ -107,7 +107,7 @@ public AuthenticationEventPublisher authenticationEventPublisher Map, Class> mapping = Collections.singletonMap(FooException.class, FooEvent.class); - AuthenticationEventPublisher authenticationEventPublisher = + DefaultAuthenticationEventPublisher authenticationEventPublisher = new DefaultAuthenticationEventPublisher(applicationEventPublisher); authenticationEventPublisher.setAdditionalExceptionMappings(mapping); return authenticationEventPublisher;