in28minutes / spring-microservices

Microservices using Spring Boot, Spring Cloud, Docker and Kubernetes
https://www.udemy.com/course/microservices-with-spring-boot-and-spring-cloud/
MIT License
1.8k stars 2.73k forks source link

Step21:Using Feign REST Client for Service Invocation #12

Closed saeidehvalipour closed 3 years ago

saeidehvalipour commented 4 years ago

In SpringBoot 2.3.0 M4, When We try to AutoWired "CurrencyExchangeServiceProxy" in "CurrencyConversionController" It doesn't work: @Autowired private CurrencyExchangeServiceProxy serviceProxy; "Couldn\t Autowired, No Beans of "CurrencyExchangeServiceProxy" type found. I double-check the class "CurrencyConversionBean".

Does anyone has any idea?

in28minutes commented 3 years ago

Please ensure you have @EnableFeignClients annotation configured with right package.