I am new to spring security
I have web.xml
web.xml
You haven't declared the root webapp context - you've added the contextConfigLocation, but not the listener that uses it:
contextConfigLocation
org.springframework.web.context.ContextLoaderListener