Spring Security allows developer to integrate security features with J2EE web application easily, it highjacks incoming HTTP request via servlet filters, and implements “user defined” security checking.
In this tutorial, we show you how to integrate Spring Security 3.0 with Spring MVC web application to secure URL access. After implemented Spring security, to view the content of the page, users need to key in correct “username” and “password”.
Technologies used :
  1. Spring 3.0.5.RELEASE
  2. Spring Security 3.0.5.RELEASE
  3. Eclipse 3.6
  4. JDK 1.6
  5. Maven 3
Note
Spring Security 3.0 requires Java 5.0 Runtime Environment or higher

1. Directory Structure

Review the final directory structure of this tutorial.
directory structure

2. Spring Security Dependencies

To use Spring security 3.0, you need “spring-security-core.jar“, “spring-security-web.jar” and “spring-security-config.jar“. Spring libraries are available in Maven central repository.
File : pom.xml
 
  3.0.5.RELEASE