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

Image may be NSFW.
Clik here to view.

How to Execute a Scheduled Task Only Once for a Spring Boot Application

1. Introduction In this tutorial, we’ll learn how to schedule tasks to run only once. Scheduled tasks are common for automating processes like reports or sending notifications. Typically, we set these...

View Article


Image may be NSFW.
Clik here to view.

multiply vs parallelMultiply Methods of BigInteger

1. Overview Sometimes, when programming in Java, we may need to work with integer values that exceed the limits of primitive types like the long type. The BigInteger class in allows us to do exactly...

View Article


Image may be NSFW.
Clik here to view.

How to Determine the Delimiter in CSV File

1. Introduction In CSV (Comma-Separated Values) files, delimiters separate data fields, and they can vary across different files. Common delimiters include commas, semicolons, or tabs. Identifying the...

View Article

Image may be NSFW.
Clik here to view.

Mock @Value in Spring Boot Test

1. Overview When writing unit tests in Spring Boot, it’s common to encounter scenarios where we must mock external configurations or properties loaded using the @Value annotation. These properties are...

View Article

Image may be NSFW.
Clik here to view.

Reduce Memory Footprint in Java

1. Overview Application size is crucial for start-up time and memory usage, both of which impact performance. Even with today’s powerful hardware, we can significantly reduce an application’s memory...

View Article


Image may be NSFW.
Clik here to view.

Convert Avro File to JSON File in Java

1. Overview Apache Avro is a widely used data serialization system, especially popular in big data applications due to its efficiency and schema evolution capabilities. In this tutorial, we’ll walk...

View Article

Image may be NSFW.
Clik here to view.

User Agent Parsing Using Yauaa

1. Overview When building a web application, we often need information about the devices and browsers accessing our application so that we can deliver optimized user experiences. A user agent is a...

View Article

Image may be NSFW.
Clik here to view.

@MapsId Annotation in Hibernate

1. Overview In this short tutorial, we’ll learn how to use the Hibernate annotation @MapsId to implement the shared primary key strategy. First, we’ll start with some insight into what @MapsId is....

View Article


Image may be NSFW.
Clik here to view.

Reading a File Into a 2d Array in Java

1. Introduction Reading data from files is a common task in many applications. When working with structured data such as CSV files, we can store the contents in a 2D array for easier access and...

View Article


Image may be NSFW.
Clik here to view.

How to Publish Maven Artifacts to GitHub Packages

1. Overview In this tutorial, we’ll learn how to create a Maven artifact and make it publicly available. We’ll discuss the project structure, building the JAR file with Maven, and publishing it to...

View Article

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


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