Spring Boot With Spring Batch
1. Overview Spring Batch is a powerful framework for developing robust batch applications. In our previous tutorial, we introduced Spring Batch. In this tutorial, we'll build on the previous one and...
View ArticleA Guide to MultipleBagFetchException in Hibernate
1. Overview In this tutorial, we'll talk about the MultipleBagFetchException. We'll begin with the necessary terms to understand, and then we'll explore some workarounds until we reach the ideal...
View ArticleGet a Filename Without the Extension in Java
1. Overview When we work with files in Java, we often need to handle filenames. For example, sometimes we want to get the name without the extension from a given filename. In other words, we want to...
View ArticleComparing Doubles in Java
1. Overview In this tutorial, we'll talk about the different ways of comparing double values in Java. In particular, it isn't as easy as comparing other primitive types. As a matter of fact, it's...
View ArticleAdding Parameters to HttpClient Requests
1. Introduction HttpClient is part of the Apache HttpComponents project that provides a toolset of low-level Java components focused on HTTP and associated protocols. The most essential function of...
View ArticleJava Weekly, Issue 363
1. Spring and Java >> Incubator Support for HTTP/3 in Netty [netty.io] Say hello to HTTP/3 and QUIC – the first incubator support of QUIC in Netty based on Cloudflare's quiche implementation!...
View ArticleArrayList vs. LinkedList vs. HashMap in Java
1. Overview Collections in Java are based on a couple of core interfaces and more than a dozen implementation classes. The wide selection of different implementations can sometimes lead to confusion....
View ArticleJDBC URL Format For Different Databases
1. Overview When we work with a database in Java, usually we connect to the database with JDBC. The JDBC URL is an important parameter to establish the connection between our Java application and the...
View ArticleInvalidAlgorithmParameterException: Wrong IV Length
1. Overview The Advanced Encryption Standard (AES) is a widely used symmetric block cipher algorithm. Initialization Vector (IV) plays an important role in the AES algorithm. In this tutorial, we'll...
View ArticleWriting byte[] to a File in Java
1. Overview In this quick tutorial, we're going to learn several different ways to write a Java byte array to a file. We'll start at the beginning, using the Java IO package. Next, we'll look at an...
View ArticleConfiguring a Project to Exclude Certain Sonar Violations
1. Overview During our builds, we can use various tools to report on the quality of our source code. One such tool is SonarQube, which performs static code analysis. Sometimes we may disagree with the...
View ArticleDifference Between COPY and ADD in a Dockerfile
1. Introduction When creating Dockerfiles, it's often necessary to transfer files from the host system into the Docker image. These could be property files, native libraries, or other static content...
View ArticleViewing Contents of a JAR File
1. Overview We've learned about getting class names from a JAR file. Further, in that tutorial, we've discussed how to get the classes' names in a JAR file in a Java application. In this tutorial,...
View ArticleScheduled WebSocket Push with Spring Boot
1. Overview In this tutorial, we'll see how to send scheduled messages from a server to the browser using WebSockets. An alternative would be using Server sent events (SSE), but we won't be covering...
View ArticleJava Weekly, Issue 364
1. Spring and Java >> HotSpot Intrinsics [alidg.me] What you see isn't what you get: an introduction to how compiler intrinsics works on the HotSpot JVM! >> Smaller, Faster-starting...
View ArticleGet list of JSON objects with Spring RestTemplate
1. Overview Our services often have to communicate with other REST services in order to fetch information. In Spring, we can use RestTemplate to perform synchronous HTTP requests. The data is usually...
View ArticleUnmarshalling a JSON Array Using camel-jackson
1. Overview Apache Camel is a powerful open-source integration framework implementing a number of the known Enterprise Integration Patterns. Typically when working with message routing using Camel,...
View ArticleRedis vs MongoDB
1. Overview Often, we find it challenging to decide on a non-relational database as a primary data store for our applications. In this article, we'll explore two popular non-relational databases, Redis...
View ArticleJava 14 – New Features
1. Overview Java 14 released on March 17, 2020, exactly six months after its previous version as per Java's new release cadence. In this tutorial, we'll look at a summary of new and deprecated features...
View ArticleBehavioral Patterns in Core Java
1. Introduction Recently we looked at Creational Design Patterns and where to find them within the JVM and other core libraries. Now we're going to look at Behavioral Design Patterns. These focus on...
View Article