Logging Configuration in Spring Boot

In this tutorial I will show you how to override Spring Boot’s default logging mechanism by creating logback.xml file under src/main/resources directory. You may also read Simple log4j configuration in java and Log4j Configurations – Controlling Logging to Multiple Files By default, slf4j logging is already included in the Spring Boot Continue Reading…

Git Tutorial

This is a complete beginners tutorial on GIT version controlling system. I’ve been using Subversion for a few years and I really like Subversion. Combined with TortoiseSVN, I can’t really imagine how it could be any better. Yet there’s a growing number of developers claiming that Subversion has problems and Continue Reading…

Spring AOP – AspectJ Annotation Example

In my previous tutorial I have shown how to write Spring AOP using XML configuration and in this tutorial I am going to show you how to write Annotation based Spring AOP using @AspectJ. This example creates annotation examples with @Aspect, @Pointcut, @Before, @After, @Around, @AfterReturning, @AfterThrowing Advice. @AspectJ is Continue Reading…

Spring Security Remember Me – Persistent Token Approach

This tutorial will show you how to remember your credentials for a specific time period for auto-login without providing any login credentials into the login form. Remember-me or persistent-login authentication refers to web sites being able to remember the identity of a principal between sessions. This is typically accomplished by Continue Reading…