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

Image may be NSFW.
Clik here to view.

Conditional Statements in Spring WebFlux Reactive Flow

1. Overview Using conditional statements in a Spring WebFlux reactive flow allows for dynamic decision-making while processing reactive streams. Unlike an imperative approach, conditional logic in a...

View Article


Image may be NSFW.
Clik here to view.

Sum of First N Even Numbers Divisible By 3 in Java

1. Overview In this tutorial, we’ll explore calculating the sum of the first N even numbers divisible by 3 using Java. This can be solved using different approaches. We’ll examine two distinct methods...

View Article


Image may be NSFW.
Clik here to view.

Analyzing JMeter Results

1. Overview An Apache JMeter test execution ends with some outcomes that we need to analyze if we want to improve our service performance. These outcomes can be on the service side, with logs and...

View Article

Image may be NSFW.
Clik here to view.

How to Serve a Zip File With Spring Boot @RequestMapping

1. Overview Sometimes we may need to allow our REST API to download ZIP archives. This can be useful for reducing network load. However, we might encounter difficulties downloading the files with the...

View Article

Image may be NSFW.
Clik here to view.

Read Multiple Integers From One Line

1. Introduction In this article, we’ll explore how to read multiple integers from one line written in a file. We’ll explore the standard Java packages, specifically BufferedReader, and Scanner to...

View Article


Image may be NSFW.
Clik here to view.

Rapid Spring Boot Prototyping with Bootify

1. Introduction In today’s fast-paced development environment, accelerating the development process is crucial for delivering projects efficiently. Generating boilerplate code and configuration files...

View Article

Image may be NSFW.
Clik here to view.

How to Convert float to int in Java

1. Overview In Java programming, it’s common to face the need to convert a floating-point value to an integer. Since float allows decimal values, whereas int only holds whole numbers, converting...

View Article

Image may be NSFW.
Clik here to view.

Spring Boot 3 – Configure Spring Security to Allow Swagger UI

1. Overview In this tutorial, we’ll learn how to configure Spring Security to allow access to Swagger UI in a Spring Boot 3 application. Swagger UI is a tool for documenting APIs. It provides a...

View Article


Image may be NSFW.
Clik here to view.

Java Weekly, Issue 564

1. Spring and Java >> Exploring New Features in JDK 23: Gatherers upgrades pipeline design pattern JEP-461 [foojay.io] Let’s have a look at how the JEP-461’s stream gatherers can help handle...

View Article


Image may be NSFW.
Clik here to view.

How To Add Header and Footer to PDF Using iText in Java

1. Introduction Adding headers and footers to PDF documents enhances their readability and professionalism. This is useful in many PDF documents, such as reports, invoices, or presentations. For...

View Article

Image may be NSFW.
Clik here to view.

Troubleshooting Spring JPA Attribute Naming Issues

1. Introduction One of the most powerful frameworks that Spring offers programmers for simplifying database interactions in Java applications is the Spring JPA (Java Persistence API). It provides a...

View Article

Image may be NSFW.
Clik here to view.

Round Robin and AtomicInteger in Java

1. Introduction Multithreading has been a part of Java since its inception. However, managing concurrent tasks in multithreaded environments remains challenging, especially when multiple threads...

View Article

Image may be NSFW.
Clik here to view.

Converting a JDBC ResultSet to CSV in Java

1. Introduction When working with Java applications that interact with databases, we often need to export the query results into a format that can be easily consumed or shared. One common format for...

View Article


Image may be NSFW.
Clik here to view.

Finding the Index of the First Duplicate Element in an Array

1. Overview Finding the index of the first duplicate element in an array is a common coding problem that can be approached in various ways. While the brute-force method is straightforward, it can be...

View Article

Image may be NSFW.
Clik here to view.

HTTP DELETE With Request Body

1. Introduction In this quick tutorial, we’ll implement a HTTP DELETE endpoint that accepts a body and then explore multiple ways to send a request to it. Consequently, we’ll use different popular REST...

View Article


Image may be NSFW.
Clik here to view.

Automatically Create a Database Schema With Spring Boot

1. Introduction Spring Boot works seamlessly with JPA making it easy to implement the data access layer in our applications. One of its powerful features is its ability to automatically create and...

View Article

Image may be NSFW.
Clik here to view.

Determining Empty Row in an Excel File With Java

1. Overview One common task when working with Excel files in Java is identifying empty rows, especially when processing large datasets for analysis or reporting. Empty rows in an Excel file can disrupt...

View Article


Image may be NSFW.
Clik here to view.

Get Classpath From ClassLoader in Java

1. Overview In this article, we’ll explore how to obtain the classpath from a ClassLoader in recent OpenJDK distributions. 2. ClassLoaders and Classpath The Java Virtual Machine uses ClassLoaders to...

View Article

Image may be NSFW.
Clik here to view.

Consumer Seek in Kafka

1. Overview Seeking in Kafka is similar to locating stored data on a disk before reading. Before reading data from a partition, we must first seek to the correct position.  A Kafka consumer offset is a...

View Article

Image may be NSFW.
Clik here to view.

Storing Basic Arrays and Collections using Array/JSON/XML Types in Hibernate

1. Overview Mapping data collections in an SQL table field is a common approach when we want to store non-relational data within our entity. In Hibernate 6, there are changes to the default mapping...

View Article
Browsing all 4566 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>