How to Run Multiple Jobs in Spring Batch
1. Introduction Spring Batch is a robust framework that makes processing large volumes of data a breeze by providing reusable components and reliable infrastructure. In real-world scenarios,...
View ArticleWorking With OpenTelemetry Collector
1. Overview The OpenTelemetry Collector gathers, handles, and sends telemetry data about how our software is performing. It integrates with various systems and tools, allowing us to incorporate it into...
View ArticleSpring AI With ChromaDB Vector Store
1. Overview With traditional databases, we typically rely on exact keyword or basic pattern matching to implement our search functionality. While sufficient for simple applications, this approach fails...
View ArticleUnderstanding AI Prompt Injection Attacks
1. Introduction A few years ago, when we thought about application security, we primarily focused on securing our APIs and databases against common threats like SQL injection, cross-site scripting...
View ArticleJava Weekly, Issue 570
1. Spring and Java >> Bootiful Spring Boot 3.4: Spring Boot [spring.io] Spring Boot 3.4 is out with oh-so-many new features and improvements – graceful shutdown is enabled by default, support for...
View ArticleTesting the Main Class of a Spring Boot Application
1. Overview Testing the main class of a Spring Boot application is essential to ensure that the application starts up correctly. While unit tests often focus on individual components, verifying that...
View ArticleCount Inversions in an Array in Java
1. Overview In this tutorial, we’ll explore the problem of counting inversions in an array, a concept used in computer science to measure how far an array is from being sorted. We’ll start by defining...
View ArticleDESC Command in H2 Database
1. Overview The H2 database is a lightweight, open-source relational database engine widely used by Java developers for testing, prototyping, and lightweight storage needs. While H2 supports many...
View ArticlePersisting UUIDs in PostgreSQL using JPA
1. Overview When building robust Java applications with PostgreSQL, handling unique identifiers is a fundamental requirement. Instead of relying on auto-incrementing numeric IDs, UUIDs (Universally...
View ArticleCheck if the Given String Is a Valid Number
1. Introduction In this tutorial, we’ll explore different ways to check if a given string is a valid number in Java. We’ll cover several techniques, including built-in parsing methods, regular...
View ArticleStreaming Real-Time Log to Splunk From Spring Boot
1. Overview In this tutorial, we’ll break down the steps to stream live logs from our Spring Boot application directly into Splunk using its HTTP Event Collector (HEC). To start, we’ll configure...
View ArticleHow to Setup Stub Server Easily Using Moco
1. Introduction It’s almost impossible to underestimate the importance of testing during software development. And if we’re talking about testing, it’s hard to ignore mocking tools that often play an...
View ArticleConvert Between IPv6 and BigInteger in Java
1. Overview When working with IPv6 addresses in Java, a common requirement is to convert these addresses into a numerical format for storage or manipulation. In this tutorial, we’ll demonstrate...
View ArticleHibernate Envers – Extending Revision Info with Custom Fields
1. Overview A common requirement for system-of-record applications is keeping track of changes to domain entities. For JPA-based applications, using Hibernate Envers allows us to implement this...
View ArticleFix the JsonMappingException: Can not deserialize instance of...
1. Overview In this short tutorial, we’ll explore how to solve the Jackson exception JsonMappingException: Can not deserialize instance of java.util.HashMap out of START_ARRAY token. First, we’ll...
View ArticleStoring Date and Time in PostgreSQL Using Java
1. Introduction Storing date and time information in a database is a common task in software development. With many different formats, time zones, and storage formats, dealing with date and time can be...
View ArticleJava Weekly, Issue 571
1. Spring and Java >> Extending Spring Data Repositories Just Got Easier [spring.io] The latest Spring Data release makes extending repositories with custom functionality easier, by defining a...
View ArticleExploring Advanced JVM Options
1. Overview The Java Virtual Machine (JVM) is a powerful engine that powers Java applications. It is highly customizable and provides basic configuration through standard options, general performance...
View ArticleDifference Between BeforeTest and BeforeMethod in TestNG
1. Overview When working with TestNG in Java, efficiently managing test setup and teardown is essential for creating clean, isolated, and maintainable tests. Two commonly used annotations, @BeforeTest...
View ArticleJava Collections and null Values: Tolerance and Restrictions
1. Overview In this article, we’ll explore the tolerance and restrictions regarding null values in different Java collection types. Java collections handle null values differently, requiring careful...
View Article