Closed
Description
Andy Wilkinson opened SPR-16963 and commented
It's really easy to create a WebClient
using its builder but this can trigger the creation of a number of threads that can't then be cleaned up when the client's no longer needed.
I'd like to keep the easy creation but also be able to close it so that I'm left with the same number of threads running as there were before the client was created. If WebClient
is to replace RestTemplate
, I think this'll be of increased importance as people may want to use it as a library outside of an application context.
Affects: 5.0.7
Issue Links:
- Add JettyResourceFactory [SPR-17179] #21715 Add JettyResourceFactory