Intro to Jasypt 1. Overview In this article, we’ll be looking at the Jasypt (Java Simplified Encryption) library. Jasypt is a Java library which allows developers to add basic encryption capabilities to projects with minimum effort, and without the need of having an in-depth knowledge about implementation details of encryption… Continue Reading jasypt

Spring Security – Auto Login User After Registration 1. Overview In this quick tutorial, we’ll discuss how to auto-authenticate users immediately after the registration process – in a Spring Security implementation. Simply put, once the user finishes registering, they’re typically redirected to the login page and have to now re-type… Continue Reading spring-security-auto-login-user-after-registration

An Intro to the Spring DispatcherServlet 1. Introduction Simply put, in the Front Controller design pattern, a single controller is responsible for directing incoming HttpRequests to all of an application’s other controllers and handlers. Spring’s DispatcherServlet implements this pattern and is, therefore, responsible for correctly coordinating the HttpRequests to their… Continue Reading spring-dispatcherservlet

Isomorphic Application with React and Nashorn 1. Overview In this tutorial, we’ll understand what exactly is an isomorphic app. We’ll also discuss Nashorn, the JavaScript engine bundled with Java. Furthermore, we’ll explore how we can use Nashorn along with a front-end library like React to create an isomorphic app. 2.… Continue Reading react-nashorn-isomorphic-app

An Intro to Spring Cloud Contract 1. Introduction Spring Cloud Contract is a project that, simply put, helps us write Consumer-Driven Contracts (CDC). This ensures the contract between a Producer and a Consumer, in a distributed system – for both HTTP-based and message-based interactions. In this quick article, we’ll explore… Continue Reading spring-cloud-contract

Remove Leading and Trailing Characters from a String 1. Introduction In this short tutorial, we’ll see several ways to remove leading and trailing characters from a String. For the sake of simplicity, we’ll remove zeroes in the examples. With each implementation, we’ll create two methods: one for leading, and one… Continue Reading java-remove-trailing-characters

Introduction to Pointcut Expressions in Spring 1. Overview In this tutorial we will discuss the Spring AOP pointcut expression language. We will first introduce some terminology used in aspect-oriented programming. A join point is a step of the program execution, such as the execution of a method or the handling… Continue Reading spring-aop-pointcut-tutorial