diff --git a/config/src/main/java/org/springframework/security/config/annotation/web/configuration/EnableWebSecurity.java b/config/src/main/java/org/springframework/security/config/annotation/web/configuration/EnableWebSecurity.java index c3d0bbf531..c3e893e804 100644 --- a/config/src/main/java/org/springframework/security/config/annotation/web/configuration/EnableWebSecurity.java +++ b/config/src/main/java/org/springframework/security/config/annotation/web/configuration/EnableWebSecurity.java @@ -57,7 +57,7 @@ import org.springframework.security.config.annotation.web.WebSecurityConfigurer; * * @Override * protected void registerAuthentication(AuthenticationManagerBuilder auth) { - * registry + * auth * // enable in memory based authentication with a user named "user" and "admin" * .inMemoryAuthentication() * .withUser("user").password("password").roles("USER").and() diff --git a/config/src/main/java/org/springframework/security/config/annotation/web/configuration/WebSecurityConfigurerAdapter.java b/config/src/main/java/org/springframework/security/config/annotation/web/configuration/WebSecurityConfigurerAdapter.java index 3180b9c4f1..989adf42f6 100644 --- a/config/src/main/java/org/springframework/security/config/annotation/web/configuration/WebSecurityConfigurerAdapter.java +++ b/config/src/main/java/org/springframework/security/config/annotation/web/configuration/WebSecurityConfigurerAdapter.java @@ -113,7 +113,7 @@ public abstract class WebSecurityConfigurerAdapter implements SecurityConfigurer *
* @Override * protected void registerAuthentication(AuthenticationManagerBuilder auth) { - * registry + * auth * // enable in memory based authentication with a user named "user" and "admin" * .inMemoryAuthentication() * .withUser("user").password("password").roles("USER").and()