mirror of
https://github.com/ityouknow/spring-cloud-examples.git
synced 2025-12-08 19:25:55 +00:00
17 lines
475 B
Java
17 lines
475 B
Java
package com.neo.remote;
|
|
|
|
import org.springframework.cloud.netflix.feign.FeignClient;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
/**
|
|
* Created by summer on 2017/5/11.
|
|
*/
|
|
@FeignClient(name= "spring-cloud-producer", fallback = HelloRemoteHystrix.class)
|
|
public interface HelloRemote {
|
|
|
|
@RequestMapping(value = "/hello")
|
|
public String hello(@RequestParam(value = "name") String name);
|
|
|
|
}
|