Spring Security with Custom Login Form

Posted on Posted in Spring Articles
Directory hierarchy

 

 

 

 

 

 

 

 

 

 

 

 

Application Controller

AppController.java

Security Configuration class

SecurityConfig.java

The equivalent of Spring Security configuration in  configuration xml file

 

Spring MVC Configuration

SpringMVCConfig.xml

Spring Security Initializer

SpringSecurityInitializer.java

The equivalent of Spring Security configuration in web.xml file :

 

admin.jsp

index.jsp

login.jsp

 

user.jsp

 

Output

URL : domain/

 

 

 

 

 

 

 

 

URL : domain/admin (If username or password is incorrect)

 

URL : domain/admin

 

 

Download project

Download required JARS

Enroll into our Spring course. 

 

 

 

 

 

 

 

 

 


 

https://www.youtube.com/c/+StudyEasyOrganization
https://plus.google.com/+StudyEasyOrganization
https://www.linkedin.com/company/studyeasyorg
https://www.facebook.com/studyeasy.org/

 

Our courses:
Spring Framework 4 : Covers Annotation & XML Configuration

Link: http://studyeasy.teachable.com/p/spring/?product_id=247581&coupon_code=15ONE

JSP (Java server pages), Servlet & JSTL tutorial
http://studyeasy.teachable.com/p/jsp-servlets-jstl/?product_id=247582&coupon_code=14

JSF 2.2: Java Server Faces (Basics to Database Connectivity)

http://studyeasy.teachable.com/p/jsf/?product_id=247622&coupon_code=10TEN

Test and improve your Java skills
http://studyeasy.teachable.com/p/test-and-improve-your-java-skills/?product_id=433427&coupon_code=STUDYEASY

Java Master Course
http://studyeasy.teachable.com/p/master-java/?product_id=433396&coupon_code=FOUTHTEENX

Collections, Java Generics, Multithreading and Expressions
http://studyeasy.teachable.com/p/collections-java-generics-multi-threading/?product_id=433397&coupon_code=STUDYEASY10

StudyEasy