Easy WebClient & WebFlux
WebClient GET Pattern
Write the Kotlin code that demonstrates a WebClient GET request pattern. Create a mock function that simulates fetching a user by ID. Return a Mono with "User: John (id=1)". Print the result.
This exercises the pattern without needing actual HTTP.
Expected
User: John (id=1)
Main.kt