ниже приведена конфигурация моего клиента eureka в application.properties
Код: Выделить всё
eureka.client.service-url.default-zone=http://192.168.3.174:8761/eureka
Код: Выделить всё
@SpringBootApplication
@EnableFeignClients("com.samsan.currencyconversionservice")
@EnableDiscoveryClient
public class CurrencyConversionServiceApplication {
public static void main(String[] args) {
SpringApplication.run(CurrencyConversionServiceApplication.class, args);
}
}
Код: Выделить всё
@Component
@FeignClient(name="currency-exchange-service")
@RibbonClient(name="currency-exchange-service")
public interface CurrencyExchangeService {
@GetMapping("/currency-exchange/from/{from}/to/{to}")
public CurrencyConversionBean getExchangeValue(@PathVariable("from") String from, @PathVariable("to") String to);
}
Подробнее здесь: https://stackoverflow.com/questions/581 ... ddress-not