Skip to content

Commit f0f47b5

Browse files
quaffjzheaux
authored andcommitted
Improve warning message
1 parent add5c56 commit f0f47b5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

config/src/main/java/org/springframework/security/config/annotation/authentication/configuration/InitializeUserDetailsBeanManagerConfigurer.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,11 @@ public void configure(AuthenticationManagerBuilder auth) throws Exception {
7070
if (auth.isConfigured()) {
7171
if (!userDetailsServices.isEmpty()) {
7272
this.logger.warn("Global AuthenticationManager configured with an AuthenticationProvider bean. "
73-
+ "UserDetailsService beans will not be used for username/password login. "
73+
+ "UserDetailsService beans will not be used by Spring Security for automatically configuring username/password login. "
7474
+ "Consider removing the AuthenticationProvider bean. "
75-
+ "Alternatively, consider using the UserDetailsService in a manually instantiated "
76-
+ "DaoAuthenticationProvider.");
75+
+ "Alternatively, consider using the UserDetailsService in a manually instantiated DaoAuthenticationProvider. "
76+
+ "If the current configuration is intentional, to turn off this warning, "
77+
+ "increase the logging level of 'org.springframework.security.config.annotation.authentication.configuration.InitializeUserDetailsBeanManagerConfigurer' to ERROR");
7778
}
7879
return;
7980
}

0 commit comments

Comments
 (0)