I implemented spring security in my project.the authentication part works fine.It selects users from dbs and logs in.However authorisation does not work.There are no errors on the console or anywhere,But the user with user role as ROLE_USER is able to access the ADMIN pages also.This is the spring-security.xml
"select username,password,enabled from users where username=?"
"select username, role from roles where username =? " />
The user is able to access admin pages and admin is accessing user pages.How to solve this.I want user shouldnt acess admin URLs