Spring MVC with Log4j

Posted on Posted in Spring Articles
Directory hierarchy

 

 

 

 

 

 

 

 

 

 

 

 

 

 

App Controller

AppController.java

Spring Configuration File

SpringMVCConfig.xml

log4j.properties

log4j.properties

Standard log levels 
Standard Level int Value
OFF 0
FATAL 100
ERROR 200
WARN 300
INFO 400
DEBUG 500
TRACE 600
ALL Integer.MAX_VALUE

Admin.jsp

index.jsp

user.jsp

web.xml

Download project (WAR)