Guide to Java Diff Utils
1. Overview In modern software development, tracking and visualizing changes between different versions of files or content is vital. Whether we’re building a version control system, a collaborative...
View ArticleAuthorize Request for Certain URL and HTTP Method in Spring Security
1. Overview Securing resources based on user roles and HTTP methods in web application development is essential to prevent unauthorized access and manipulation. Spring Security provides a flexible and...
View ArticleEvent-Driven LISTEN/NOTIFY Support in Java using PostgreSQL
1. Introduction In this article, we’re going to take a look at the LISTEN and NOTIFY commands within PostgreSQL. We’ll see what they are, how they can be used, and how we can utilize them from within...
View ArticleJava Weekly, Issue 598
1. Spring and Java >> Java’s Structured Concurrency: Finally Finding Its Footing [foojay.io] The Structured Concurrency API will continue as a preview feature in JDK 25, but with several...
View ArticleHow to Resolve “Could Not Autowire...
1. Introduction In this tutorial, we’ll explore how to solve a common error we may encounter when implementing email functionality using Spring Boot. We’ll focus on understanding the “Could not...
View ArticleTransactional Messaging for Microservices Using Eventuate Tram
1. Overview In this tutorial, we’ll explore the challenges of maintaining data consistency between database operations and messaging. We’ll begin by examining the problem and then implement the...
View ArticleImplementing Unions in Hibernate
1. Introduction In this tutorial, we’ll explore how to use the union operation in Hibernate to unify results from two related database entities. At Baeldung University, information about part-time...
View ArticleJava Weekly, Issue 599
1. Spring and Java >> Java 25 Integrates Compact Object Headers with JEP 519 [infoq.com] Compact Object Headers move from experimental to product feature in JDK 25. This enhancement has been...
View ArticleText-to-SQL Implementation Using Spring AI
1. Overview Modern applications are increasingly using natural language interfaces to simplify user interaction with systems. This is particularly useful for data retrieval, where non-technical users...
View ArticleHashMap Implementation to Count the Occurrences of Each Character in Java
1. Overview Counting how many times each character appears in a string is a common and practical task in Java. Whether we’re processing user input, analyzing text, or solving algorithm problems,...
View ArticleIntroduction to Ambassador Design Pattern
1. Introduction One common task when working with cloud applications is writing code that communicates with external applications via the network. For that, we can leverage the Ambassador Pattern to...
View ArticleBuilding Open API Documentation Using YML File in Resources Folder
1. Introduction In this tutorial, we’ll generate Swagger UI for REST endpoints using a YML file and schema reference. We’ll keep all the code needed to generate APIs separate, following the Swagger...
View ArticleFaking OAuth2 Single Sign-on in Spring
1. Overview We often need to implement OAuth2 Single Sign-on in applications. With it, users logged in once can enjoy accessing other apps without logging in again and again. Typically, it has an...
View ArticleUsing the Model Context Protocol With Quarkus and Langchain4j
1. Overview With the arrival of Large Language Models (LLMs), teams are increasingly integrating AI into their applications. AI integration is no longer limited to simple question-answering. Model...
View ArticleCleaning Spring Properties Files
1. Overview While we’re creating configuration properties for our Spring projects, we may choose to split them across multiple files. It’s common to have different properties by Spring profile. Over...
View ArticleHow to Implement Retry for JUnit Tests
1. Overview Automated tests are an essential part of modern software development. However, not all test failures are caused by bugs. Some failures are flaky, occurring intermittently due to reasons...
View ArticleOne Reader with Multiple Processors and Writers in Spring Batch
1. Introduction In this tutorial, we’ll explore how to implement a Spring Batch job with one reader, multiple processors, and multiple writers. This approach is useful when we need to read data once,...
View ArticleIntroduction to DiceDB
1. Introduction Efficiently storing and retrieving data is a core challenge in software development. Developers want to depend on fast and reliable tools that manage data with minimal overhead. DiceDB...
View ArticleHibernate ORM With Panache
1. Overview Hibernate is one of the most popular ORM frameworks, offering a rich set of features that simplify seamless access to the database layer. In this tutorial, we’ll explore an extension to...
View ArticleJava Weekly, Issue 600
We’re at a cool 600 Thanks for being along for the ride. 1. Spring and Java >> Demystifying Spring Boot With Spring Debugger [blog.jetbrains.com] Debugging a framework that does most of the work...
View Article