In Web.xml we need to tell the spring security where is the context.
contextConfigLocation
/WEB-INF/security-context.xml
org.springframework.web.context.ContextLoaderListener
springSecurityFilterChain
org.springframework.web.filter.DelegatingFilterProxy
springSecurityFilterChain
/*
+ In pom file we need to put some code to download the security library
+ property
3.0.7.RELEASE
org.springframework.security
spring-security-ldap
${spring.security.version}
org.springframework.security
spring-security-core
${spring.security.version}
org.springframework.security
spring-security-config
${spring.security.version}
org.springframework.security
spring-security-web
${spring.security.version}
+ In security-context.xml I will copy the file in.
<security:user name="username" password="password"
authorities="ROLE_USER" /
// for ldap server
// for static user
