Directory hierarchy

Directory structure

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/

output 1

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

output 2

URL : domain/admin

output 3


Full stack Java Developer

   Buy me a coffee!

 

PayTM QR (INDIA)

Download file

Leave a Reply

avatar
  Subscribe  
Notify of
Close Menu