Check 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 ArticleImplementing an AI Assistant with Spring AI
1. Overview In this tutorial, we’ll discuss the concepts of Spring AI that can help create an AI assistant using LLMs like ChatGPT, Ollama, Mistreal, etc. Enterprises are increasingly adopting AI...
View ArticleTransform a Future into CompletableFuture
1. Introduction In this tutorial, we’ll explore how to transform a Future into a CompletableFuture. This transformation allows us to leverage the advanced features of CompletableFuture, such as...
View ArticleHow to Read an External Properties File in Maven
1. Overview Maven, a popular build and dependency manager, is widely used in Java development. Also, we can create custom properties in Maven. When building Java applications, we often rely on...
View ArticleIntroduction to transmittable-thread-local
1. Overview Storing context during code execution is a common challenge. For instance, we might store security properties during a web request or keep traceability fields like transaction ID for...
View ArticleAWS SDK – Fixing the “Unable to Find a Region via the Region Provider Chain”...
1. Introduction When using the AWS SDK to connect programmatically to an AWS service, a common issue related to the region configuration of AWS resources might arise. The reason for such an issue is...
View ArticleIntroduction to libGDX
1. Overview Java has long been a popular choice for game development, with notable successes like the original version of Minecraft. Developing a game without a game library or engine could be a...
View ArticleHow to Share Data Between Steps in Cucumber
1. Introduction Cucumber is a testing tool that supports Behavior-Driven Development (BDD) methodology. BDD empowers non-technical stakeholders to describe business features using natural...
View ArticleDifference Between Swagger and HATEOAS
1. Overview Two popular approaches to designing REST APIs are often used: Swagger and HATEOAS. Both aim to make APIs more user-friendly and understandable but follow distinct paradigms. In this...
View ArticleHow to Drag and Drop in Selenium
1. Overview In this tutorial, we’ll explore how to perform drag-and-drop actions using Selenium and WebDriver. Drag-and-drop functionality is commonly used in web applications, from rearranging items...
View Article