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

Image may be NSFW.
Clik here to view.

Java JSch Library to Read Remote File Line by Line

1. Overview The Java Secure Channel (JSch) library provides an API for connecting Java applications to remote servers, enabling various remote operations. One of its powerful features is the ability to...

View Article


Image may be NSFW.
Clik here to view.

Determining All Years Starting on a Sunday Within a Given Year Range

1. Overview Determining all years that start on a Sunday might seem like a simple requirement. However, it can be quite relevant in various real-world scenarios or business use cases. Specific dates...

View Article


Image may be NSFW.
Clik here to view.

Automated Accessibility Testing With Selenium

1. Overview Accessibility testing is crucial for ensuring that software applications are usable by everyone, including people with impairments. Performing accessibility tests manually can be...

View Article

Image may be NSFW.
Clik here to view.

Understanding Kafka Consumer Offset

1. Overview A Kafka consumer offset is a unique, monotonically increasing integer that identifies the position of an event record in a partition. Each consumer in the group maintains a specific offset...

View Article

Image may be NSFW.
Clik here to view.

Query JPA Repository With Single Table Inheritance Subtypes

1. Overview JPA is a useful tool when developing Java-based applications. We know about inheritance in Java, but when we have inheritance in JPA entities, JPA provides multiple strategies for handling...

View Article


Image may be NSFW.
Clik here to view.

Solving “java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver”

1. Overview The Java Database Connectivity (JDBC) Application Programming Interface (API) provides a set of classes and interfaces. We can use these to develop applications to connect to data sources...

View Article

Image may be NSFW.
Clik here to view.

Caching Guide

       

View Article

Image may be NSFW.
Clik here to view.

A Guide to @Locked in Lombok

1. Overview Project Lombok is a Java library that provides various annotations we can use to generate standard methods and functionalities, reducing the boilerplate code. For instance, we can use...

View Article


Image may be NSFW.
Clik here to view.

Parse XML as a String in Java

1. Overview Sometimes, we may come across a scenario that requires us to convert an XML (Extensible Markup Language) string to an actual XML document that we can process. It’s more common in tasks like...

View Article


Image may be NSFW.
Clik here to view.

Handling the Blocking Method In Non-Blocking Context Warning

1. Overview In this article, we’ll explore the warning: “Possibly blocking call in non-blocking context could lead to thread starvation”. First, we’ll recreate the warning with a simple example and...

View Article

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 look at how JEP 461 stream gatherers can help handle complex data and...

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


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