Skip to content

Programatically creating @Client HttpClients that are included in HttpFilters #5150

Answered by j1m-renwick
j1m-renwick asked this question in Q&A
Discussion options

You must be logged in to vote

I stumbled on the answer to this 5 minutes after posting, it was a load easier than I thought and just entails adding the instance to the context instead of anything more complicated like I thought it would be...doh.

HttpClient client = applicationContext.createBean(HttpClient.class, myUrl)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by j1m-renwick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant