Spring Boot Configuration with Jasypt 1. Introduction Jasypt (Java Simplified Encryption) Spring Boot provides utilities for encrypting property sources in Boot applications. In this article, we’ll discuss how we can add jasypt-spring-boot‘s support and use it. For more information on using Jasypt as a framework for encryption, take a look… Continue Reading spring-boot-jasypt

Introduction to AutoFactory 1. Introduction In this tutorial, we’ll give a brief introduction to AutoFactory, from by Google. This is a source-level code generator that helps generate factories. 2. Maven Setup Before we begin, let’s add the following dependency to the pom.xml: <dependency> <groupId>com.google.auto.factory</groupId> <artifactId>auto-factory</artifactId> <version>1.0-beta5</version> </dependency> The latest version… Continue Reading autofactory

Counting Matches on a Stream Filter 1. Overview In this tutorial, we’ll explore the use of the Stream.count() method. Specifically, we’ll see how we can combine the count() method with the filter() method to count the matches of a Predicate we’ve applied. 2. Using Stream.count() The count() method itself provides a… Continue Reading java-stream-filter-count