Find Distinct Rows Using Spring Data JPA
1. Overview In some situations, we need to fetch unique elements from the database. This tutorial focuses on querying distinct data with Spring Data JPA, examining various methods to retrieve distinct...
View ArticleImplement Bulk and Batch API in Spring
1. Overview Implementing standard REST APIs covers most of the typical use cases. However, there are some limitations in the REST-based architecture style for dealing with any bulk or batch operations....
View ArticleHow to Serialize and Deserialize java.sql.Blob With Jackson
1. Introduction In this article, we’ll see how we can serialize and deserialize java.sql.Blob using Jackson. The java.sql.Blob represents a Binary Large Object (Blob) in Java, which can store large...
View ArticleIntroduction to JetCache
1. Introduction In this article, we’re going to look at JetCache. We’ll see what it is, what we can do with it, and how to use it. JetCache is a cache abstraction library that we can use on top of a...
View ArticlePacked Repeated Fields in Protobuf in Java
1. Overview In this tutorial, we’ll discuss packed repeated fields in Google’s Protocol Buffer (protobuf) messages. Protocol Buffers help define highly optimized language-neutral and platform-neutral...
View ArticleHow to Insert an Emoji in a Java String
1. Introduction In modern applications, incorporating emojis into text enhances the user experience significantly. Moreover, working with emojis requires understanding Unicode and how Java handles text...
View ArticleAutomated Visual Regression Testing Over Scalable Cloud Grid
1. Overview Automated visual regression testing over a scalable cloud grid offers a powerful solution for ensuring web applications’ visual integrity and consistency across various browsers, devices,...
View ArticleAvoid “No Multipart Boundary Was Found” in Spring
1. Introduction In this tutorial, we’ll learn about the common error “No Multipart Boundary Was Found” when handling multipart HTTP messages in Spring. We’ll learn how to properly configure such...
View ArticleUpcasting Vs. Downcasting in Java
1. Introduction Understanding how to handle objects within Java’s type hierarchy is essential for writing flexible and maintainable code. Two fundamental concepts in this area are upcasting and...
View ArticleHow to Pass Method as Parameter in Java
1. Introduction In Java, we can pass a method as a parameter to another method using functional programming concepts, specifically using lambda expressions, method references, and functional...
View ArticleUsing MapStruct With Lombok
1. Overview Project Lombok is a library that helps with boilerplate code, allowing us to focus more on the core application logic. Similarly, MapStruct is another library that helps with boilerplate...
View ArticleAvoid Inserting Duplicates in ArrayList in Java
1. Overview In this short tutorial, we’ll learn how to avoid inserting duplicate values when using ArrayList in Java. First, we’ll see how to do this using ready-to-use JDK classes. Then, we’ll discuss...
View ArticleJava Weekly, Issue 546
1. Spring and Java >> Encodings for flattened heap values [cr.openjdk.org] Exploring the complexities and challenges of flattening data structures on the heap as part of Project Valhalla >>...
View ArticleHow to Remove Digits From a String
1. Overview In this tutorial, we’ll explore various methods to remove digits from Strings. We’ll start with regular expressions, demonstrating how to utilize the replaceAll() method of the String class...
View ArticleIntegration Testing Spring WebClient Using WireMock
1. Introduction Spring WebClient is a non-blocking, reactive client for performing HTTP requests, and WireMock is a powerful tool for simulating HTTP-based APIs. In this tutorial, we’ll see how we can...
View ArticleIntroduction to Apache Pinot
1. Introduction Apache Pinot, developed originally by LinkedIn, is a real-time distributed OLAP (Online Analytical Processing) datastore designed to deliver low latency and high throughput for...
View ArticleRun Queries From a File in H2 Database
1. Overview In this tutorial, we’ll explore how to run a script from a file for H2 databases. H2 is an open-source Java database that can be embedded in Java applications or run as a separate server....
View ArticleFinding the Mode of Integers in an Array in Java
1. Overview In this article, we’ll explore how to find the mode of integers in an array using Java. When working with datasets in Java, we might often need to find statistical measures such as mean,...
View ArticleZero-Downtime Web Application Upgrade in Tomcat With Parallel Deployment
1. Overview Apache Tomcat, or Tomcat for short, is an open-source implementation of Jakarta Servlet specification. It functions as a web server that receives HTTP or WebSocket requests and invokes the...
View ArticleSet Format for Instant Using ObjectMapper
1. Introduction Formatting dates consistently is essential for maintaining clarity and compatibility in data representation, especially when working with JSON. In this tutorial, we’ll explore various...
View Article