Best of BaeldungMay 2025

  1. 1
    Article
    Avatar of baeldungBaeldung·1y

    Introduction to RESTHeart

    RESTHeart is a Java-based framework designed to build HTTP APIs on top of MongoDB, automatically exposing collections as REST and GraphQL endpoints. It offers CRUD operations, role-based access, and authentication out of the box with minimal setup, providing a zero-code solution. This tutorial guides on running RESTHeart locally or via Docker, setting up authentication, and performing CRUD operations both through REST and GraphQL APIs.

  2. 2
    Article
    Avatar of baeldungBaeldung·1y

    Stream Gatherers in Java

    Java 24 introduces the Gatherer interface, enhancing Java Stream APIs by allowing more flexible intermediate operations. Gatherers facilitate custom data transformations and support asynchronous processing. The article explores built-in Gatherers and demonstrates creating custom Gatherers for diverse input-output mappings, demonstrating how these can be used for one-to-one, one-to-many, many-to-one, and many-to-many relationships.

  3. 3
    Article
    Avatar of baeldungBaeldung·1y

    Conditional Logging With Logback

    Explore the conditional logging capabilities of the Logback framework, which allow dynamic control of log outputs based on runtime conditions. The post covers the setup using Maven dependencies, the use of conditional tags in configuration files, and practical implementations with system properties. It also discusses the EvaluatorFilter for runtime expression evaluation and offers alternatives such as Spring profiles and environment-specific variables for cleaner configuration.

  4. 4
    Article
    Avatar of baeldungBaeldung·1y

    Flexible Pub/Sub Messaging With Spring Boot and Dapr

    Learn how to integrate Dapr with Spring Boot to create a flexible publish/subscribe messaging system. This approach decouples application code from specific message brokers, allowing seamless swapping without modifying code. The article provides a tutorial on setting up and testing a ride-hailing application, showcasing Dapr's capabilities for distributed messaging and the benefits of running tests locally using Testcontainers.