• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Spring Quick Reference Guide

 
Greenhorn
Posts: 19
  • 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: 33
11
  • 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.
 
I can't renounce my name. It's on all my stationery! And hinted in this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic