Spring web app tutorial 24: Spring Security and database

How to read roles and users using JDBC User Service. Authorities by username query and users by username query.

How to read roles and users using JDBC User Service (from relational database - HSQL, PostgreSQL, MySQL, Oracle, ...)? Authorities by username query and users by username query.