Description
In preview post, we are using XML files to configure the
Spring Security in a Spring MVC environment. In this
Tutorial, we are going to show you how to convert the
Previous XML-base Spring Security project into a pure spring
Annotation project.
Technologies used:
1. Spring 3.2.8.RELEASE
2. Spring Security 3.2.3.RELEASE
3. Eclipse 4.2
4. JDK 1.6
5. Maven 3
6. Tomcat 7 (Servlet 3.x)
Few Notes
1. This tutorial is using WebInitializer,the to load
The Spring Context Loader automatically, which is supported
In Servlet 3.x container only, for example, Tomcat 7 and
Jetty 8.
2. Since we are using WebInitializer, the web.xml file
Is NOT required.
3. Spring Security annotations are supported in older
Servlet 2.x container, for example, Tomcat 6. If you use the
Classic XML file to load the Spring context, this tutorial
Is still able to deploy on Servlet 2.x container, for
Example, Tomcat 6
ID: per72121
per72121@gmail.