My RestClient is suppose to consume services from multiple servers, each with different hostname and credentials.
I understand that RestTemplate
is thread safe, and creates a different connection for every Task, but how it can be done with different credentials ?
Aren't the credentials provided to the RestTemplate upon creation ?