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

Image may be NSFW.
Clik here to view.

Find by Property of a Nested Object in Spring Data

1. Overview In Spring Data, it’s common to query entities using derived queries based on method names. When dealing with relationships between entities, such as nested objects, Spring Data provides...

View Article


Image may be NSFW.
Clik here to view.

Filter a List by Nested Lists in Java

1. Introduction In this tutorial, we’ll explore how to filter a list that contains nested lists in Java. When working with complex data structures, such as lists of objects that contain other lists, it...

View Article


Image may be NSFW.
Clik here to view.

Java Date and Calendar: From Legacy to Modern Approaches

1. Overview Handling date and time is a fundamental part of many Java applications. Over the years, Java has evolved in dealing with dates, introducing better solutions to simplify things for...

View Article

Image may be NSFW.
Clik here to view.

Consuming Messages in Batch in Kafka Using @KafkaListener

1. Overview In this tutorial, we’ll discuss handling Kafka messages in batches with Spring Kafka library’s @KafkaListener annotation. Kafka broker is a middleware that helps persist messages from...

View Article

Image may be NSFW.
Clik here to view.

Introduction to JetBrains Xodus

1. Overview Xodus is an open-source embedded database built by JetBrains. We can use it as an alternative to relational databases. Using Xodus we obtain a high-performance transactional key-value store...

View Article


Image may be NSFW.
Clik here to view.

Java Weekly, Issue 567

1. Spring and Java >> Exploring New Features in JDK 23: Module Design Pattern with JEP-476 [foojay.io] JDK 23 brings module imports as a preview feature, intending to simplify the import of...

View Article

Image may be NSFW.
Clik here to view.

Introduction to JavaMelody

1. Introduction As application developers, we generally build complex business logic as efficiently as possible. However, once these applications are in production, we would also like to gather runtime...

View Article

Image may be NSFW.
Clik here to view.

Connect to Oracle Database with JDBC Driver

1. Overview The Oracle Database is one of the most popular relational databases. In this tutorial, we’ll learn how to connect to an Oracle Database using a JDBC Driver. 2. The Database To get us...

View Article


Image may be NSFW.
Clik here to view.

Mockito Answer API: Returning Values Based on Parameters

1. Introduction Mocking is a testing technique that replaces real components with objects that have predefined behavior. This allows developers to isolate and test specific components without relying...

View Article


Image may be NSFW.
Clik here to view.

Introduction to Lanterna

1. Introduction Lanterna is a library for building text-based user interfaces, giving us similar abilities to the Curses C library. However, Lanterna is written in pure Java. It also gives us the...

View Article

Image may be NSFW.
Clik here to view.

How to Add a UTF-8 BOM in Java

1. Introduction In text encoding, the Byte Order Mark (BOM) is a special marker at the beginning of a file that indicates its byte order and encoding scheme. For UTF-8 encoding, the BOM is a sequence...

View Article

Image may be NSFW.
Clik here to view.

Disable Hibernate Entity Validation in a Spring Boot Project

1. Overview In Spring Boot projects that use Hibernate, entity validation is typically applied automatically during persistence. While Hibernate’s built-in validation is useful, it can become redundant...

View Article

Image may be NSFW.
Clik here to view.

Extract IP Address From a String in Java

1. Overview When processing log files or analyzing network traffic data, we often need to extract IP addresses from a given String in Java. In this tutorial, we’ll examine the format of IPv4 addresses...

View Article


Image may be NSFW.
Clik here to view.

Java Weekly, Issue 568

1. Spring and Java >> Java 24 to Reduce Object Header Size and Save Memory [infoq.com] and >> JEP 493: Linking Run-Time Images without JMODs [openjdk.org] The Java platform is always...

View Article

Image may be NSFW.
Clik here to view.

Convert JSON to Avro Object

1. Introduction In this tutorial, we’ll explore how to convert JSON data to Apache Avro objects in Java. Avro is a data serialization framework that provides rich data structures and binary data in a...

View Article


Image may be NSFW.
Clik here to view.

Relationship and Difference Between HAL and HATEOAS

1. Overview Web APIs have rapidly evolved with the rise of REST (Representational State Transfer). REST-based APIs allow developers to build powerful web applications that are modular, scalar, and...

View Article

Image may be NSFW.
Clik here to view.

Solving Tape Equilibrium Problem in Java

1. Overview In this tutorial, we’ll introduce the tape equilibrium problem and find an efficient solution. This problem is a common interview question. We’ll see that a good way to approach this...

View Article


Image may be NSFW.
Clik here to view.

AI Image Generation With OpenAI DALL·E 3 in Java

1. Overview Artificial Intelligence is changing the way we build web applications. One exciting application of AI is generating an image from a text-based description. OpenAI’s DALL·E 3 is a popular...

View Article

Image may be NSFW.
Clik here to view.

Leveraging Generational ZGC for Optimal Temporary Object Management

1. Introduction Managing temporary objects is a crucial performance factor in Java virtual machine optimization. With the introduction of Generational ZGC (Z Garbage Collector) in Java 21 (now...

View Article

Image may be NSFW.
Clik here to view.

Guide to Using the JMeter Beanshell

1. Introduction In this quick tutorial, we’ll create a test case that uses most of the BeanShell features available in JMeter. Ultimately, we’ll learn how to use the necessary tools to make any test...

View Article
Browsing all 3607 articles
Browse latest View live


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