I\'m using spring 4 and I want to use spring security 3 to control my login form. So I have the following tables in database :
users table :
The users-by-username-query
and authorities-by-username-query
are mixed up. Move the first SQL query to the second and vice versa.
Maybe you want to change 1
to users.enabled
too.
This error is because of column missing. The PreparedStatement
is looking for 3 columns to get the 3 values and it finds only 2.
The users-by-username-query
and authorities-by-username-query
required 3 columns in select.