In this tutorial, we learn about memoization and demonstrate how to use Mono.cache() from the Project Reactor.
Also find me here:
Baeldung Editor
Michael Krimgen
I'm a Java Software Developer with 12 years experience in the financial industry. I like clean coding, learning new languages (both programming and natural languages) and reading about and understanding algorithms. My main focus is Java, Java EE, Spring, Databases and Kotlin.
Here's what I've reviewed (so far):
Baeldung on Java
- All
- Testing (2)
- Spring Boot (2)
- Reactive (2)
- Java Map (2)
- Java IO (2)
- Core Java (2)
- Persistence (1)
- Java String (1)
- Java Dates (1)
- Java Collections (1)
- Gradle (1)
Spring WebClient exchange() vs retrieve()
Filed under Reactive
In this article, we explore the key methods from the WebClient interface, including retrieve(), exchangeToMono(), and exchangeToFlux().
How to Fix EOFException in Java
Filed under Java IO
In this quick tutorial, we learn how to fix the java.io.EOFException, a special type of IOException.
Convert Excel Files to PDF Using Java
Filed under Java IO
Learn how to convert Excel files to PDF in Java using the Apache POI and iText libraries.
Static Final Variables in Java
Filed under Core Java
In this tutorial, we learn how to declare and initialize constant variables.
Retrieving Unix Time in Java
Filed under Java Dates
In this tutorial, we learn how to retrieve Unix time values in Java.
Limiting the Max Size of a HashMap in Java
Filed under Java Map
In this tutorial, we learn how to limit the number of entries in a HashMap.
Gradle Proxy Configuration
Filed under Gradle
In this tutorial, we learn how to configure Gradle to work behind a proxy server.
Overriding Spring Beans in Integration Test
Filed under Spring Boot, Testing
In this tutorial, we learn how to override Spring beans in integration tests.
Convert ResultSet Into Map
Filed under Java Map, Persistence
Learn to convert a ResultSet in to a HashMap in Java.
How to Iterate Over the String Characters in Java
Filed under Java String
In this tutorial, we learn how to iterate over the characters of a String in Java.
Validate Boolean Type in Spring Boot
Filed under Spring Boot
This tutorial teaches various ways to validate a boolean in Spring Boot.
Is Java Reflection Bad Practice?
Filed under Core Java
In this article, we’ll explore the benefits and drawbacks of using Java Reflection, trying to determine whether it qualifies as a bad practice.
Difference Between @Spy and @SpyBean
Filed under Testing
Learn the difference between @Spy and @SpyBean in Spring.
Create an ArrayList with Multiple Object Types
Filed under Java Collections
Learn how to create an ArrayList with multiple object types in Java.
Baeldung on Linux
- All
- Scripting (1)
- File Viewing (1)
How to Direct the Dialog Box Input to a Variable
Filed under Scripting
A quick tutorial on how to capture user input from dialog boxes in bash scripts and store it in a variable.
How to Read the First and the Last Line From Input
Filed under File Viewing
Learn how to extract the first and last lines from an input file using a single command.
Baeldung on Kotlin
- All
- Spring (1)
- Kotlin Strings (1)
- Kotlin Numbers (1)
- Kotlin Collections (1)
- Kotlin (1)
- Algorithms (1)
Difference Between eachCount() and eachCountTo() Methods in Kotlin
Filed under Kotlin Collections
Quick tutorial for the aggregation operations eachCount() and eachCountTo() in Kotlin.
Dijkstra’s Algorithm in Kotlin
Filed under Algorithms
In this tutorial, we’ll learn how to implement Dijkstra’s algorithm in Kotlin.
Extract Numbers From a String in Kotlin
Filed under Kotlin Numbers, Kotlin Strings
Learn how to extract numbers from a Kotlin string.
Creating a Spring Boot Console Application With Kotlin
Filed under Spring
In this tutorial, we learn how to create a Spring Boot console application in Kotlin.
Insert an Element at a Given Position Into an Array in Kotlin
Filed under Kotlin
In this article, we learn how to insert an element into an array at a certain position in Kotlin.