provide jdbcTemplate for database access.
add code-based spring security configuration, but it doesn't work.