An Introduction to Epsilon GC: A No-Op Experimental Garbage Collector 1. Introduction Java 11 introduced a No-Op Garbage Collector called Epsilon, which promises the lowest GC overhead possible. In this short tutorial, we’ll explore how Epsilon works, and we’ll mention the common use cases. 2. Quick Hands-On Let’s start with… Continue Reading jvm-epsilon-gc-garbage-collector

Using Guava CountingOutputStream   1. Overview In this tutorial, we’re going to look at the CountingOutputStream class and how to use it. The class can be found in popular libraries like Apache Commons or Google Guava. We’re going focus on the implementation in the Guava library. 2. CountingOutputStream ==== 2.1.… Continue Reading guava-counting-outputstream

Reloading Properties Files in Spring 1. Overview In this tutorial, we’re going to show how to reload properties in a Spring application. 2. Reading Properties in Spring We have different options to access properties in Spring: Environment — We can inject Environment and then use Environment#getProperty to read a given property.… Continue Reading spring-reloading-properties

Spring Data with Spring Security 1. Overview Spring Security provides a good support for integration with Spring Data. While the former handles security aspects of our application, the latter provides convenient access to the database containing the application’s data. In this article, we’ll discuss how Spring Security can be integrated… Continue Reading spring-data-security