diff --git a/clientui/src/main/java/com/clientui/ClientUiApplication.java b/clientui/src/main/java/com/clientui/ClientUiApplication.java index 1b322c4..89e2470 100644 --- a/clientui/src/main/java/com/clientui/ClientUiApplication.java +++ b/clientui/src/main/java/com/clientui/ClientUiApplication.java @@ -1,8 +1,13 @@ package com.clientui; +import com.clientui.exceptions.CustomErrorDecoder; +import com.clientui.proxies.MicroserviceProduitsProxy; +import feign.Feign; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.openfeign.EnableFeignClients; +import org.springframework.cloud.openfeign.support.SpringMvcContract; +import org.springframework.context.annotation.Bean; @SpringBootApplication @EnableFeignClients("com.clientui") @@ -10,5 +15,13 @@ public class ClientUiApplication { public static void main(String[] args) { SpringApplication.run(ClientUiApplication.class, args); + + /* Feign.builder() + .contract(new SpringMvcContract()) + .errorDecoder(new CustomErrorDecoder()) + .target(MicroserviceProduitsProxy.class, "localhost:9001"); + */ } + + }