Previously we have seen how to implement Spring Security in a Hello World program using XML configuration. In this Spring Security Annotation Configuration Example, we will be using the same example but instead of XML configuration, we will be configuring it through annotation.
In the previous Spring Security Hello World Example, we have built a simple Spring MVC Hello World application and took the advantage of Spring Security by using the default login form provided. In this tutorial we will go a bit further and build our own login for our Spring Security Custom Login Form application.
In this Spring Security Tutorial, we will build a Simple Spring MVC Hello World application integrated with Spring Security features. In this application, we will be dealing with two major security areas Authentication and Authorization.
- Authentication – It is nothing but validating whether the user is a valid user or not.
- Authorization – Deciding whether the particular user is allowed to perform a certain activity in the application or not.