Arrays.deepEquals
1. Overview In this tutorial, we'll dive into the details of the deepEquals method from the Arrays class. We'll see when we should use this method, and we'll go through some simple examples. To learn...
View ArticleIntro to OpenCV with Java
1. Introduction In this tutorial, we'll learn how to install and use the OpenCV computer vision library and apply it to real-time face detection. 2. Installation To use the OpenCV library in our...
View ArticleArrays.deepEquals
1. Overview In this tutorial, we'll dive into the details of the deepEquals method from the Arrays class. We'll see when we should use this method, and we'll go through some simple examples. To learn...
View ArticleJava Weekly, Issue 321
1. Spring and Java >> Announcing: The NEW Spring Website! [spring.io] A fresh, clean look to the official Spring site, with a renewed focus on making the site feel more welcoming and comfortable....
View ArticleGetting Started with CRaSH
1. Introduction CRaSH is a reuseable shell that deploys in a JVM and helps us interact with the JVM. In this tutorial, we'll see how to install CRaSH as a standalone application. Also, we'll embed in a...
View ArticleDifference Between Docker Images and Containers
1. Overview Docker is a tool for creating, deploying, and running applications easily. It allows us to package our applications with all the dependencies, and distribute them as individual bundles....
View ArticleModifying the Response Body in a Zuul Filter
1. Overview In this tutorial, we're going to look at Netflix Zuul's post filter. Netflix Zuul is an edge service provider that sits between an API client and a plethora of microservices. The...
View ArticleIntroduction to the jcabi-aspects AOP Annotations Library
1. Overview In this quick tutorial, we'll explore the jcabi-aspects Java library, a collection of handy annotations that modify the behavior of Java application using aspect-oriented programming (AOP)....
View ArticleIntroduction to cache2k
1. Overview In this tutorial, we'll take a look at cache2k — a lightweight, high-performance, in-memory Java caching library. 2. About cache2k The cache2k library offers fast access times due to...
View ArticleConfiguring Thread Pools for Java Web Servers
1. Introduction In this tutorial, we take a look at thread pool configuration for Java web application servers such as Apache Tomcat, Glassfish Server, and Oracle Weblogic. 2. Server Thread Pools...
View ArticleFast Pattern Matching of Strings Using Suffix Tree
1. Overview In this tutorial, we'll explore the concept of pattern matching of strings and how we can make it faster. Then, we'll walk through its implementation in Java. 2. Pattern Matching of Strings...
View ArticleTesting Spring Boot @ConfigurationProperties
1. Overview In our previous guide to @ConfigurationProperties, we learned how to set up and use the @ConfigurationProperties annotation with Spring Boot for working with external configuration. In this...
View ArticlePattern Matching for instanceof in Java 14
1. Overview In this quick tutorial, we'll continue our series on Java 14 by taking a look at Pattern Matching for instanceof which is another new preview feature included with this version of the JDK....
View ArticleCapturing a Java Thread Dump
1. Overview In this tutorial, we'll discuss various ways to capture the thread dump of a Java application. A thread dump is a snapshot of the state of all the threads of a Java process. The state of...
View ArticleFinding the Spring Version
1. Overview In this article, we're going to show how to programmatically find out which version of Spring, JDK, and Java our application is using. 2. How to Get Spring Version Let's start by learning...
View ArticleIntroduction to Apache Beam
1. Overview In this tutorial, we'll introduce Apache Beam and explore its fundamental concepts. We'll start by demonstrating the use case and benefits of using Apache Beam, and then we'll cover...
View ArticleInjecting a Value in a Static Field in Spring
1. Overview In this tutorial, we'll see how we can inject a value from a Java properties file to a static field with Spring. 2. Problem To begin with, let's imagine that we set a property to a...
View ArticleCould Not Reserve Enough Space For Object Heap
1. Overview In this tutorial, we'll learn the cause of “Could not reserve enough space for object heap” error, while going through some possible scenarios. 2. Symptoms “Could not reserve enough space...
View ArticleHow to Use Regular Expressions to Replace Tokens in Strings
1. Overview When we need to find or replace values in a string in Java, we usually use regular expressions. These allow us to determine if some or all of a string matches a pattern. We might easily...
View ArticleGetting Into a Docker Container’s Shell
1. Overview We know Docker is a powerful tool for creating, deploying, and running applications easily. In the images vs containers tutorial, we discussed how Docker images are built using layers. We...
View Article