瀏覽代碼

Corrected AuthenticationEventPublisher Type

Xi Minghui 11 月之前
父節點
當前提交
d23f283598
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/modules/ROOT/pages/servlet/authentication/events.adoc

+ 1 - 1
docs/modules/ROOT/pages/servlet/authentication/events.adoc

@@ -107,7 +107,7 @@ public AuthenticationEventPublisher authenticationEventPublisher
     Map<Class<? extends AuthenticationException>,
         Class<? extends AbstractAuthenticationFailureEvent>> mapping =
             Collections.singletonMap(FooException.class, FooEvent.class);
-    AuthenticationEventPublisher authenticationEventPublisher =
+    DefaultAuthenticationEventPublisher authenticationEventPublisher =
         new DefaultAuthenticationEventPublisher(applicationEventPublisher);
     authenticationEventPublisher.setAdditionalExceptionMappings(mapping);
     return authenticationEventPublisher;