Best of BaeldungMay 2024

  1. 1
    Article
    Avatar of baeldungBaeldung·2y

    Introduction to Java 22

    Java 22 brings updates to the Java language, including unnamed variables and patterns, statements before super(), string templates, and implicitly declared classes and instance main methods. It also introduces new libraries such as the Foreign Function and Memory API, Class File API, Stream Gatherers, Structured Concurrency API, Scoped Values, Vector API, and updates to tooling, such as multi-file source programs. Additionally, there are performance enhancements in the G1 Garbage Collector with region pinning.

  2. 2
    Article
    Avatar of baeldungBaeldung·2y

    Autowiring an Interface With Multiple Implementations

    Learn how to autowire an interface with multiple implementations in Spring Boot using qualifiers, profiles, and other tools provided by Spring.

  3. 3
    Article
    Avatar of baeldungBaeldung·2y

    OpenAI API Client in Java

    Learn how to use the OpenAI API client in Java to build a simple console tool connected to ChatGPT. The tutorial covers the required dependencies, creating requests with messages and models, tokenization, and controlling randomness and biases in responses.

  4. 4
    Article
    Avatar of baeldungBaeldung·2y

    CompletableFuture vs. Mono

    This post compares CompletableFuture with Mono from Project Reactor in Java, highlighting their differences in handling asynchronous tasks and execution. It explores how CompletableFuture can be prone to blocking the main thread and how Mono offers a more non-blocking and reactive approach.

  5. 5
    Article
    Avatar of baeldungBaeldung·2y

    How to Make Multiple REST Calls in CompletableFuture

    Learn how to use CompletableFuture in Java to efficiently retrieve data from multiple external REST APIs in parallel.

  6. 6
    Article
    Avatar of baeldungBaeldung·2y

    Fault Tolerance in Java Using Failsafe

    This article explores the Failsafe library in Java, which can be used to make code more resilient to failure cases. It explains the concept of fault tolerance and how to include the library in a Maven project. The article also covers the different types of Failsafe policies for handling failures, such as fallback, retry, timeout, bulkhead, rate limiter, and circuit breaker.

  7. 7
    Article
    Avatar of baeldungBaeldung·2y

    Java Weekly, Issue 543

    Java Weekly, Issue 543 provides insights into JEP 467, storing JSR-310 date and time abstractions using Hibernate, and the significance of module imports in Java 23.

  8. 8
    Article
    Avatar of baeldungBaeldung·2y

    Setting Default TimeZone in Spring Boot Application

    Learn different ways to set the default TimeZone in a Spring Boot Application, including using JVM arguments and programmatically at startup.