Skip to content

Instantly share code, notes, and snippets.

@RealDeanZhao
RealDeanZhao / autowire-resttemplate.md
Last active May 23, 2023 07:45
How to autowire RestTemplate using annotations

From StackOverflow

Errors you'll see if a RestTemplate isn't defined

Consider defining a bean of type 'org.springframework.web.client.RestTemplate' in your configuration.

or

No qualifying bean of type