Annotation Based HTTP Filters in Micronaut
1. Overview In this tutorial, we’ll go through the annotated HTTP filters the Micronaut framework provides. Initially, HTTP filters in Micronaut were closer to the Java EE Filter interface and the...
View ArticleThe Road to All Access for Courses
I just wrote The Road to Membership and Baeldung Pro a few days ago. Yes, it’s been a busy week The TLDR The TLDR is a major change to how we sell courses – we finally have a subscription with access...
View ArticleChanging Spring Boot Properties at Runtime
1. Overview Dynamically managing application configurations can be a critical requirement in many real-world scenarios. In microservices architectures, different services may require on-the-fly...
View ArticleHow to Generate a Random Byte Array of N Bytes
1. Overview There are multiple ways to generate random byte arrays, each suited to different needs. In this tutorial, we’ll explore three approaches: using the built-in java.util.Random class, the...
View ArticleHow to Read a Message From a Specific Offset in Kafka
1. Overview Kafka is a popular open-source distributed message streaming middleware that decouples message producers from message consumers. It decouples them using the publish-subscribe pattern. Kafka...
View ArticleFind the Length of the Largest Subarray With Zero Sum in Java
1. Overview Finding the largest subarray with a sum of zero is a classic problem that can be tackled efficiently using a HashMap. In this tutorial, we’ll walk through a detailed step-by-step approach...
View ArticleHow to Generate PDF With Selenium
1. Overview In this tutorial, we’ll explore how to generate a PDF file from a web page using the print() method available in the ChromeDriver class of Selenium 4. The print() method provides a...
View ArticleHow to Build Multi-Module Maven Projects in Docker
1. Overview In this tutorial, we’ll learn how to efficiently build Docker images for multi-module Maven projects. We’ll start by exploring multi-stage Docker builds to leverage Docker’s caching...
View ArticleExcluding Transitive Dependencies in Gradle
1. Overview Gradle is a build automation tool for managing and automating the process of building, testing, and deploying applications. Using a domain-specific language (DSL) based on Groovy or Kotlin...
View ArticleUsing Google Cloud Firestore Database in Spring Boot
1. Overview Today, cloud-hosted managed databases have become increasingly popular. One such example is Cloud Firestore, a NoSQL document database offered by Firebase and Google, which provides...
View ArticleDifference Between getText() and getAttribute() in Selenium WebDriver
1. Introduction In this article, we’ll look at ways to get the value of attributes of web elements on a web page using Selenium WebDriver with Java. We’ll also explore the differences between getText()...
View ArticleHow to Consume REST API in Quarkus
1. Introduction Microservices architecture has transformed how we design and build applications by breaking down monolithic systems into smaller, loosely coupled services. These services communicate...
View ArticleJava Weekly, Issue 557
1. Spring and Java >> Structured logging in Spring Boot 3.4 [spring.io] Well-defined, often machine-readable logging formats in Spring Boot 3.4: supporting common structured formats as well as...
View ArticleMigrate From Java EE to Jakarta EE
1. Overview In this tutorial, we’ll understand why Jakarta EE became the successor to Java EE and learn how to migrate to it. 2. The Genesis of Jakarta EE Java EE (Java Platform, Enterprise Edition) is...
View ArticleAccessFlag for Modifiers in Java Reflection
1. Overview Reflection in Java is a powerful feature that allows us to manipulate different members, such as classes, interfaces, fields, and methods. Moreover, using reflection, we can instantiate...
View ArticleHow to Find the Odd and Even Numbers in an Array?
1. Overview In Java programming, one frequently encountered task is distinguishing between odd and even numbers within an array. Mastering this technique can enhance the ability to handle data...
View ArticleGuide to @DynamicInsert in Spring Data JPA
1. Overview The @DynamicInsert annotation in Spring Data JPA optimizes insert operations by including only non-null fields in SQL statements. This process speeds up the resulting query, reducing...
View ArticleExecute Synchronous Requests Using WebClient
1. Introduction In this tutorial, we’ll learn how to execute synchronous requests using the WebClient. While reactive programming continues to become more widespread, we’ll examine scenarios in which...
View ArticleDeploying a Java App on Heroku
1. Overview In this tutorial, we’ll look at ways to deploy a simple Spring Boot Java app to the cloud using Heroku, a platform that simplifies app deployment, management, and scaling by handling...
View ArticleCheck if Two 2d Arrays Are Equal in Java
1. Introduction In this tutorial, we’ll explore how to check if two 2d arrays are equal in Java. First, we’re going to go over the problem and explore it to better understand it. This way, we’ll also...
View Article