B

Baeldung

Java, Spring and Web Development tutorials

Obtain Index of a Given LinkedHashSet Element Without Iteration

Learn how to address a rare case where we need to ensure element uniqueness when querying their indexes. The post Obtain Index of a Given LinkedHashSet Element Without Iteration first appeared on Baeldung.

2026/1/10
articleCard.readMore

Fix the Java-MySQL Connection Exception: Public Key Retrieval is not allowed

Learn about the causes of the Public Key Retrieval is not allowed error when working with MySQL in a Java application and ways to fix or work around it. The post Fix the Java-MySQL Connection Exception: Public Key Retrieval is not allowed first appeared on Baeldung.

2026/1/10
articleCard.readMore

How to Set Content-Length Header in ResponseEntity in Spring MVC

Setting the Content-Length header in Spring MVC's ResponseEntity is straightforward, but it should be done explicitly and only when required. The post How to Set Content-Length Header in ResponseEntity in Spring MVC first appeared on Baeldung.

2026/1/10
articleCard.readMore

Setting the JVM Options for Kafka Tools

Learn how to set the JVM options for the command-line Kafka tools. The post Setting the JVM Options for Kafka Tools first appeared on Baeldung.

2026/1/9
articleCard.readMore

Java Weekly, Issue 628

Another quick one as we're getting 2026 started. Some very useful insights into architecture. The post Java Weekly, Issue 628 first appeared on Baeldung.

2026/1/8
articleCard.readMore

Introduction to IoTDB

Explore the IoTDB time-series database. The post Introduction to IoTDB first appeared on Baeldung.

2026/1/6
articleCard.readMore

Why Use the Returned Instance of Spring Data JPA Repository’s save() Call?

Learn why it is important to always use the instance returned by the save() method with unit tests to show what happens during both persisting and merging The post Why Use the Returned Instance of Spring Data JPA Repository’s save() Call? first appeared on Baeldung.

2026/1/6
articleCard.readMore

Joining Tables Without Relation Using JPA Criteria

Explore how to construct a JPA criteria query to join tables without explicitly defining the JPA relationship. The post Joining Tables Without Relation Using JPA Criteria first appeared on Baeldung.

2026/1/6
articleCard.readMore

How to Handle and Fix java.io.NotSerializableException

Learn ways to work around or correct java.io.NotSerializableException when dealing with Java runtime serialization. The post How to Handle and Fix java.io.NotSerializableException first appeared on Baeldung.

2026/1/3
articleCard.readMore

A Guide to @ConcreteProxy in Hibernate

Learn how to use Hibernate's @ConcreteProxy annotation to lazy-load polymorphic associations to the correct types in inheritance hierarchies. The post A Guide to @ConcreteProxy in Hibernate first appeared on Baeldung.

2026/1/3
articleCard.readMore

Java Weekly, Issue 627

Happy New Year. A quick one as we head into 2026 :) The post Java Weekly, Issue 627 first appeared on Baeldung.

2026/1/2
articleCard.readMore

Resolving PostgreSQL ERROR: canceling statement due to user request

Learn about the underlying causes of ERROR: canceling statement due to user request during statement execution with PostgreSQL and how to handle them. The post Resolving PostgreSQL ERROR: canceling statement due to user request first appeared on Baeldung.

2025/12/30
articleCard.readMore