From 9b46bd57d82d965a321ec88716b7fac59a3061bd Mon Sep 17 00:00:00 2001 From: TestAccountsUser Date: Tue, 17 Apr 2018 13:43:54 +0200 Subject: [PATCH] Client fonctionnel communiquant avec tous les MS --- .../main/java/com/clientui/ClientUiApplication.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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"); + */ } + + }