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

Image may be NSFW.
Clik here to view.

@ExtensionMethod Annotation in Lombok

1. Overview Lombok is a popular Java library that simplifies code writing by reducing boilerplate code. One of its powerful features is the @ExtensionMethod annotation, which enhances the readability...

View Article


Image may be NSFW.
Clik here to view.

Forcing Jackson to Deserialize to Specific Type

1. Overview In this tutorial, we’ll explore how to force Jackson to deserialize a JSON value to a specific type. By default, Jackson deserializes JSON values to a type specified by the target field....

View Article


Image may be NSFW.
Clik here to view.

Find the Substring After the Last Pattern in Java

1. Overview In Java, there are many situations where we need to extract a substring that appears after the last occurrence of a specific pattern in a given String. This can be particularly useful when...

View Article

Image may be NSFW.
Clik here to view.

Sort an Array of Strings According to String Lengths

1. Overview In this tutorial, we’ll explore different approaches to sorting a string array according to the element’s length. 2. Comparator When we work on sorting in Java, we often define a Comparator...

View Article

Image may be NSFW.
Clik here to view.

Generate a Random Hexadecimal Value in Java

1. Introduction Random hexadecimal values in applications can serve as unique identifiers for various purposes like database entries, session tokens, or game mechanics. They can also contribute to...

View Article


Image may be NSFW.
Clik here to view.

PSQLException: The Server Requested Password-Based Authentication

1. Introduction A common pitfall when configuring a Datasource for our Spring Boot project with a PostgreSQL database is providing the wrong password for the database connection or even forgetting the...

View Article

Image may be NSFW.
Clik here to view.

Getting Started with MongoDB and Quarkus

1. Introduction Quarkus is a popular Java framework optimized for creating applications with minimal memory footprint and fast startup times. When paired with MongoDB, a popular NoSQL database, Quarkus...

View Article

Image may be NSFW.
Clik here to view.

Setup MySQL DB in Eclipse

1. Overview Connecting to a MySQL database from Eclipse can offer several benefits, especially if we’re working on database-driven applications. For example, we can use a local MySQL database to test...

View Article


Image may be NSFW.
Clik here to view.

Returning Errors Using ProblemDetail in Spring Boot

1. Overview In this article, we’ll explore using ProblemDetail to return errors in Spring Boot applications. Whether we’re handling REST APIs or reactive streams, it offers a standardized way to...

View Article


Image may be NSFW.
Clik here to view.

Java Weekly, Issue 553

1. Spring and Java >> Is Java Still Relevant Nowadays? [jetbrains.com] Well… it turns out that yes. Not surprised >> Creating a Command Line Tool with JBang and PicoCLI to Generate Release...

View Article

Image may be NSFW.
Clik here to view.

A Guide to @‌MockBeans

1. Overview In this quick tutorial, we’ll explore the usage of the Spring Boot @MockBeans annotation. 2. Example Setup Before we dive in, let’s create a simple ticket validator example we’ll use...

View Article

Image may be NSFW.
Clik here to view.

How to Convert XLSX File to CSV in Java

1. Overview XLSX is a popular spreadsheet format created by Microsoft Excel, known for its ability to store complex data structures such as formulas and graphs. In contrast, CSV, or Comma-Separated...

View Article

Image may be NSFW.
Clik here to view.

Generate Values for Entity Attributes in Hibernate

1. Overview When building our persistence layer with Hibernate, we often need to generate or populate certain entity attributes automatically. This can include assigning default values, generating...

View Article


Image may be NSFW.
Clik here to view.

Hibernate Reactive and Quarkus

1. Overview Creating reactive applications for large-scale, high-performance systems has become increasingly essential in Java development. Hibernate Reactive and Quarkus are powerful tools that enable...

View Article

Image may be NSFW.
Clik here to view.

Java Strip Methods

1. Overview In this tutorial, we’ll explore the various strip methods in the String class. We’ll demonstrate their use and understand under which circumstances we should use one over another. Finally,...

View Article


Image may be NSFW.
Clik here to view.

Convert a ResultSet From PostgreSQL Array to Array of Strings

1. Introduction PostgreSQL arrays are a feature that allows us to store multiple values in a single column. However, when retrieving these arrays in Java, we may need to convert them to a more...

View Article

Image may be NSFW.
Clik here to view.

Check if all Elements in an Array are Equal in Java

1. Overview When working with arrays in Java, there are situations where we need to verify if all elements in an array are equal. In this tutorial, we’ll explore how to check if all elements in an...

View Article


Image may be NSFW.
Clik here to view.

IN Clause Parameter Padding in Hibernate

1. Overview When building our persistence layer, optimizing database query performance is an important requirement. One technique databases use to improve query performance is SQL statement caching,...

View Article

Image may be NSFW.
Clik here to view.

Java Class.cast() vs. Cast Operator

1. Introduction Casting in Java is a fundamental concept that allows one data type to be converted into another. It’s a crucial process to manipulate objects and variables in a program efficiently. In...

View Article

Image may be NSFW.
Clik here to view.

Java Virtual Machine Tutorials

       

View Article
Browsing all 4633 articles
Browse latest View live


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