JHipster with a Microservice Architecture 1. Introduction In this writeup, we’ll explore an interesting example with JHipster – building a simple microservices architecture. We’ll show how to build and deploy all the required pieces, and in the end, we’ll have a full-blown microservice application up and running. If you’re new… Continue Reading jhipster-microservices

Concatenating Strings In Java 1. Introduction Java provides a substantial number of methods and classes dedicated to concatenating Strings. In this tutorial, we’ll dive into several of them as well as outline some common pitfalls and bad practices. 2. StringBuilder First up is the humble StringBuilder. This class provides an array of String-building utilities… Continue Reading java-strings-concatenation

Configure a RestTemplate with RestTemplateBuilder 1. Introduction In this quick tutorial, we’re going to look at how to configure a Spring RestTemplate bean. Let’s start by discussing the three main configuration types: using the default RestTemplateBuilder using a RestTemplateCustomizer creating our own RestTemplateBuilder To be able to test this easily, please follow… Continue Reading spring-rest-template-builder

Lambda Expressions and Functional Interfaces: Tips and Best Practices 1. Overview Now that Java 8 has reached wide usage, patterns, and best practices have begun to emerge for some of its headlining features. In this tutorial, we will take a closer look to functional interfaces and lambda expressions. Further reading:… Continue Reading java-8-lambda-expressions-tips

Programmatically Restarting a Spring Boot Application 1. Overview In this tutorial, we’ll show how to programmatically restart a Spring Boot application. Restarting our application can be very handy in some cases: Reloading config files upon changing some parameter Changing the currently active profile at runtime Re-initializing the application context for any reason… Continue Reading java-restart-spring-boot-app