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:
Thomas Turrell-Croft 2020-05-18 22:35:57 +02:00 committed by Rob Winch
parent 892f2f8843
commit c1f737c842
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}
----