Q1. > How do I check whether the following two queries is executed or not in spring-security.xml ?
<jdbc-user-service data-source-ref="dataSource"
users-by-username-query=
"select user_login_name as username,user_password as password,user_type_id,role_id from sox_audit.sox_users where user_login_name=? and user_password=?"
authorities-by-username-query=
"select user_login_name as username,role_id as authority from sox_audit.sox_users where user_login_name ='[email protected]' and user_password='12345' "/>
I can able to login with hardcoded values and give authorities as per the user type. But I cannot By selecting the records from DB.
Can anyone help me out in this.