mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-29 08:12:14 +00:00
Update User.java
fixed a typo; replaced "User.witUsername("user")" with "User.withUsername("user")"
This commit is contained in:
parent
bb15213091
commit
0e37c0912e
@ -314,7 +314,7 @@ public class User implements UserDetails, CredentialsContainer {
|
||||
*
|
||||
* <pre>
|
||||
* <code>
|
||||
* UserDetails user = User.witUsername("user")
|
||||
* UserDetails user = User.withUsername("user")
|
||||
* .password("{bcrypt}$2a$10$dXJ3SW6G7P50lGmMkkmwe.20cQQubK3.HZWzG3YB1tlRy.fqvM/BG")
|
||||
* .roles("USER")
|
||||
* .build();
|
||||
|
Loading…
x
Reference in New Issue
Block a user