Redirect to Different Pages after Login with Spring Security 1. Overview A common requirement for a web application is to redirect different types of users to different pages after login. An example of this would be redirecting standard users to a /homepage.html page and admin users to a /console.html page… Continue Reading spring_redirect_after_login

Spring MVC @PathVariable with a dot (.) gets truncated 1. Overview In this short tutorial, we’ll discuss a common problem when working with Spring MVC – when using a Spring @PathVariable with a @RequestMapping to map the end of a request URI that contains a dot, we’ll end up with a partial value in our… Continue Reading spring-mvc-pathvariable-dot

Double-Checked Locking with Singleton 1. Introduction In this tutorial, we’ll talk about the double-checked locking design pattern. This pattern reduces the number of lock acquisitions by simply checking the locking condition beforehand. As a result of this, there’s usually a performance boost. Let’s take a deeper look at how it… Continue Reading java-singleton-double-checked-locking