These are steps required to install Spring Security for a form authentication implementation on a Spring MVC project.
- Maven Dependencies.
org.springframework.security spring-security-core 3.1.4.RELEASE org.springframework.security spring-security-config 3.1.4.RELEASE org.springframework.security spring-security-web 3.1.4.RELEASE - Add Spring Security filter to web.xml
springSecurityFilterChain org.springframework.web.filter.DelegatingFilterProxy springSecurityFilterChain /* - Add a security-context.xml spring beans config file. You can place all your security config on root application context xml but separating it would produce clearer code without namespace prefix clutter
- Add basic HTTP form authentication and provider as seen on Spring reference manual
2 thoughts on “Installing Spring Security On Spring MVC Project”