diff --git a/docs/manual/src/docs/asciidoc/_includes/servlet/authentication/unpwd/jdbc.adoc b/docs/manual/src/docs/asciidoc/_includes/servlet/authentication/unpwd/jdbc.adoc index ddbdc8a4de..23198edc99 100644 --- a/docs/manual/src/docs/asciidoc/_includes/servlet/authentication/unpwd/jdbc.adoc +++ b/docs/manual/src/docs/asciidoc/_includes/servlet/authentication/unpwd/jdbc.adoc @@ -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); } ----