• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Spring Quick Reference Guide

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does the book cover any kind of troubleshooting, or avoiding what seems to be a conflict between Spring Boot and Spring's WebClient used in conjunction with Mono?    

Using Spring Boot together with the WebClient and Mono just seems to freeze up forever on making the call to .block()

I ended up rewriting the code to use the good old favourite HTTPURLConnection

Thanks!
 
Author
Posts: 24
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Spring Boot should work great with WebClient. The makers of Spring actually suggest everyone use WebClient going forward instead of RestTemplate.

However, it requires a shift in your mental model to understand how reactive works (Mono is a reactive type, and part of project Reactor) - the book covers Reactor and WebFlux including WebClient.

Calling .block() should only block until the Mono produces an output value. Without seeing the code I can't give much more than that.
 
Let nothing stop you! Not even this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic