Preconditions in Liquibase
1. Overview Liquibase is a powerful database management tool that provides an easy way to track and deploy database changes. It also allows to describe the behavior of changesets at the time of their...
View ArticleHow to Execute Load Tests Using the k6 Framework
1. Introduction As web applications scale, they must efficiently handle increasing concurrent users and requests. Load testing is crucial in evaluating an application’s performance under varying...
View ArticleUsing Amazon Nova Models With Spring AI
1. Overview Modern web applications are increasingly integrating with Large Language Models (LLMs) to build solutions. The Amazon Nova understanding models from Amazon Web Services (AWS) are a suite of...
View ArticleExecute a JAR File From a Java Program
1. Introduction While working on Java projects, we might encounter a situation where we need to run an external JAR (executable JAR) from within the Java program as a separate process and see the...
View ArticleJava Weekly, Issue 580
1. Spring and Java >> Evolution of Java Ecosystem for Integrating AI [inside.java] An overview of Java libraries that enable LLM integration, with a close look at Oracle’s Generative AI service...
View ArticlePutting Value Into Map if Not Null in Java
1. Overview In this tutorial, we’ll learn how to avoid inserting a null value into a map. We’ll focus on the put() method of the Map interface to add a new key-value pair. 2. Using the if Statement For...
View ArticleIntroduction to Pulumi With Java
1. Introduction Pulumi is a modern infrastructure-as-code (IaC) tool that allows developers to define and manage cloud resources using general-purpose programming languages like Java. Unlike...
View ArticleIntegrating Pkl With Spring Boot
1. Overview In this tutorial, we’ll learn how to use Pkl (pronounced Pickle), a Configuration-as-Code language, to define configuration in Spring Boot applications. Traditionally, we might define...
View ArticleTesting LLM Responses Using Spring AI Evaluators
1. Overview Modern web applications are increasingly integrating with Large Language Models (LLMs) to build solutions like chatbots and virtual assistants. However, while LLMs are powerful, they’re...
View ArticleDifference Between isA() and anyObject() in EasyMock
1. Introduction When writing unit tests with EasyMock, we often need to verify that the methods are called with specific types of arguments. EasyMock provides two main matching methods for this...
View ArticleUsing Greater-Than-Or-Equal-to in a Switch Statement in Java
1. Overview switch statements are commonly used to simplify complex if-else chains. They provide a way to perform different actions based on a single variable’s value. However, a switch statement in...
View ArticleResolving ClassCastException: Ljava.lang.Object; cannot be cast to...
1. Overview In Java, arrays are a fundamental part of the language, providing a structured way to store multiple values of the same type. However, when working with arrays and type casting, we...
View ArticleJava Weekly, Issue 581
1. Spring and Java >> Micronaut Framework 4.7.0 Provides Integration with LangChain4j and Graal Languages [infoq.com] The recent version of the Micronaut framework provides support for...
View ArticleBuilding and Running a Micronaut Application in a Docker Container
1. Introduction In this tutorial, we’ll explore how to build and run a Micronaut application in a Docker container. We’ll discuss everything from setting up a Micronaut project to creating and running...
View ArticleHow to Execute Multiple SQL Statements as One in JDBC
1. Overview When working with a database using Java and JDBC, there are scenarios where we need to execute multiple SQL statements as a single operation. It can help us improve the application...
View ArticleCreate Kafka Consumers With Reactor Kafka
1. Introduction Apache Kafka is a popular distributed event streaming platform, and when combined with Project Reactor, it enables building resilient and reactive applications. Reactor Kafka is a...
View ArticleHow to Distinguish Between Field Absent vs. Null in Jackson
1. Introduction In this tutorial, we’ll explore ways to configure Jackson’s ObjectMapper to handle serialization and deserialization for null and absent values. Finally, we’ll demonstrate a real-world...
View ArticleSorting Alphanumeric Strings in Java
1. Introduction Sorting alphanumeric strings is a common task in Java when dealing with mixed sequences of numbers and letters. This is particularly useful in file sorting, database indexing, and UI...
View ArticleHow to Connect Kafka with ElasticSearch
1. Overview In this tutorial, we’ll learn how to connect Apache Kafka to ElasticSearch using the Kafka Connector Sink. The Kafka project provides Kafka Connect, a powerful tool that allows seamless...
View ArticleIntroduction to ActiveJ
1. Overview ActiveJ is a lightweight Java framework for high-performance applications. We can use it to create minimalistic and modular applications with a fast startup and a small memory footprint. It...
View Article