Polish JDBC Authentication Doc
* Correct documented default schema to match default schema exposed as classpath resource * Fix Java example of adding users to JdbcUserDetailsManager Fixes gh-8550
This commit is contained in:
parent
892f2f8843
commit
c1f737c842
|
@ -35,7 +35,7 @@ The default schema is also exposed as a classpath resource named `org/springfram
|
|||
----
|
||||
create table users(
|
||||
username varchar_ignorecase(50) not null primary key,
|
||||
password varchar_ignorecase(50) not null,
|
||||
password varchar_ignorecase(500) not null,
|
||||
enabled boolean not null
|
||||
);
|
||||
|
||||
|
@ -169,7 +169,8 @@ UserDetailsManager users(DataSource dataSource) {
|
|||
.roles("USER", "ADMIN")
|
||||
.build();
|
||||
JdbcUserDetailsManager users = new JdbcUserDetailsManager(dataSource);
|
||||
users.createUser()
|
||||
users.createUser(user);
|
||||
users.createUser(admin);
|
||||
}
|
||||
----
|
||||
|
||||
|
|
Loading…
Reference in New Issue