These are chat archives for spring-cloud/spring-cloud

8th
Aug 2018
Knut Schleßelmann
@kschlesselmann
Aug 08 2018 08:19
Currently I'm trying to export my metrics to cloudwatch. Why is https://stackoverflow.com/a/51047152 being downvoted? I cannot find anything in the official doc. What's the way to go if I want to use AWS CloudWatch Metrics in Spring Boot 2?
冯文议
@fengwenyi
Aug 08 2018 08:54
hey boy
@fengwenyi
I want to ask a question
feign overtime
spring boot 2.0.3.RELEASE
spring cloud Finchley.RELEASE
how to configure
Szymon Zberaz
@SzymonZberaz_twitter
Aug 08 2018 08:56
@fengwenyi please tell us what you want to do with feign
冯文议
@fengwenyi
Aug 08 2018 08:59
one application by feign Calling another service
冯文议
@fengwenyi
Aug 08 2018 09:20
[图片]
@85_1CFCSR`MCL6LZ2L]E~4.png
RG]}_G}FVBZU34JNVT@O{NY.png
Marcos Barbero
@marcosbarbero
Aug 08 2018 09:25
what’s the issue @fengwenyi ?
Szymon Zberaz
@SzymonZberaz_twitter
Aug 08 2018 09:41

@fengwenyi If you want to use feign client you need to create proxy class for example :

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;

import static org.springframework.web.bind.annotation.RequestMethod.POST;

@FeignClient(url = "localhost:8080")
public interface FooProxy {

    @RequestMapping(method = POST, value = "/bar")
    ResponseEntity<String> bar();
}

then use yml configuration for this proxy class or use class configuration method.
Please check documentation which is available on : https://cloud.spring.io/spring-cloud-netflix/multi/multi_spring-cloud-feign.html