Client fonctionnel communiquant avec tous les MS
This commit is contained in:
parent
f272e9baa8
commit
9b46bd57d8
@ -1,8 +1,13 @@
|
|||||||
package com.clientui;
|
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.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||||
|
import org.springframework.cloud.openfeign.support.SpringMvcContract;
|
||||||
|
import org.springframework.context.annotation.Bean;
|
||||||
|
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
@EnableFeignClients("com.clientui")
|
@EnableFeignClients("com.clientui")
|
||||||
@ -10,5 +15,13 @@ public class ClientUiApplication {
|
|||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
SpringApplication.run(ClientUiApplication.class, args);
|
SpringApplication.run(ClientUiApplication.class, args);
|
||||||
|
|
||||||
|
/* Feign.builder()
|
||||||
|
.contract(new SpringMvcContract())
|
||||||
|
.errorDecoder(new CustomErrorDecoder())
|
||||||
|
.target(MicroserviceProduitsProxy.class, "localhost:9001");
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user