Spring AOP for a Method Call Within the Same Class
1. Overview There are many intricacies when working with Spring AOP. One common issue is handling method calls from within the same class as these calls circumvent the AOP functionality. In this...
View ArticleModify Property Files in Java
1. Overview Java Properties are key-value pairs that hold configuration properties needed for application execution. We store these in property files to keep a clean structure. Java provides...
View ArticleIntroduction to RESTHeart
1. Introduction RESTHeart is a Java-based framework that lets us quickly build HTTP APIs on top of MongoDB. It enables us to expose the MongoDB collections as REST and GraphQL APIs with minimal setup,...
View ArticleHow to Use Maps in Protobuf
1. Introduction Protocol Buffers (protobuf) offer a fast and efficient way to serialize structured data. They’re a compact, high-performance alternative to JSON. Unlike JSON, which is text-based and...
View ArticleJava Weekly, Issue 594
1. Spring and Java >> Local AI with Spring: Building Privacy-First Agents Using Ollama [foojay.io] Learn to set up a local AI agent with Spring AI and Ollama. This has the benefits of not sharing...
View ArticleHow to Configure GraphQL/REST APIs Using Apache Camel
1. Introduction In this tutorial, we’ll build a small application using Apache Camel to expose both GraphQL and REST APIs. Apache Camel is a powerful integration framework that simplifies connecting...
View ArticleRead a Gradle Defined Variable in Java
1. Introduction In this short tutorial, we’ll explore three ways of reading a variable defined in the Gradle file at build time. This is especially useful if our code needs to behave differently based...
View ArticleBusiness Process Automation with Kogito
1. Overview Apache Kogito is an open-source platform for building cloud-native business applications. In this tutorial, we’ll learn what we can do with it and how to build applications with Kogito...
View ArticleFlexible Pub/Sub Messaging With Spring Boot and Dapr
1. Introduction In this article, we’ll learn what Dapr is, how it integrates with Spring Boot, and how to create a publish/subscribe system without coupling to specific brokers. We’ll walk through a...
View ArticleHow to Check if a Number Is the Sum of Two or More Consecutive Integers
1. Overview In this tutorial, we’ll explore how to determine whether a given number can be expressed as the sum of two or more consecutive integers. We’ll begin by understanding the mathematical...
View ArticleStream Gatherers in Java
1. Overview Java introduced the Stream API in Java 8, and it has since become a staple in Java development. It’s easy to use, understand, and maintain, and provides sequential and parallel processing...
View ArticleJava Weekly, Issue 595
1. Spring and Java >> Hibernate 7 (and Hibernate Validator 9) [in.relation.to] A big release! Hibernate ORM 7 is officially out with version 7.0.0.Final. This includes a complete implementation...
View Article