Concatenate Strings with Groovy 1. Overview In this tutorial, we’ll look at several ways to concatenate Strings using Groovy. Note that a Groovy online interpreter comes in handy here. We’ll start by defining a numOfWonder variable, which we’ll use throughout our examples: def numOfWonder = ‘seven’ 2. Concatenation Operators Quite… Continue Reading groovy-concatenate-strings

Logging HTTP Requests with Spring Boot Actuator HTTP Tracing 1. Introduction When we work with microservices or web services in general, it’s quite useful to know how our users interact with our services. This can be achieved by tracing all the requests that hit our services and collect this information… Continue Reading spring-boot-actuator-http

Java ArrayList vs Vector 1. Overview In this tutorial, we’re going to focus on the differences between the ArrayList and Vector classes. They both belong to the Java Collections Framework and implement the java.util.List interface. However, these classes have significant differences in their implementations. 2. What’s Different? As a quick… Continue Reading java-arraylist-vs-vector

Testing with Spring and Spock 1. Introduction In this short tutorial, we’ll show the benefits of combining the supporting power of Spring Boot‘s testing framework and the expressiveness of the Spock framework whether that be for unit or integration tests. 2. Project Setup Let’s start with a simple web application. It can… Continue Reading spring-spock-testing