Quantcast
Channel: Baeldung
Browsing all 3605 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article


Image may be NSFW.
Clik here to view.

The 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 Article


Image may be NSFW.
Clik here to view.

Changing 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article


Image may be NSFW.
Clik here to view.

Find 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article


Image may be NSFW.
Clik here to view.

Excluding 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 Article


Image may be NSFW.
Clik here to view.

Using 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 Article

Image may be NSFW.
Clik here to view.

Difference 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article

Image may be NSFW.
Clik here to view.

Java 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 Article


Image may be NSFW.
Clik here to view.

Migrate 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 Article

Image may be NSFW.
Clik here to view.

AccessFlag 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 Article


Image may be NSFW.
Clik here to view.

How 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 Article

Image may be NSFW.
Clik here to view.

Guide 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 Article


Image may be NSFW.
Clik here to view.

Execute 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 Article

Image may be NSFW.
Clik here to view.

Deploying 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 Article

Image may be NSFW.
Clik here to view.

Check 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
Browsing all 3605 articles
Browse latest View live