mirror of
https://github.com/ityouknow/spring-cloud-examples.git
synced 2025-12-08 19:25:55 +00:00
18 lines
433 B
Java
18 lines
433 B
Java
package com.neo.remote;
|
|
|
|
import com.neo.remote.HelloRemote;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
/**
|
|
* Created by summer on 2017/5/15.
|
|
*/
|
|
@Component
|
|
public class HelloRemoteHystrix implements HelloRemote{
|
|
|
|
@Override
|
|
public String hello(@RequestParam(value = "name") String name) {
|
|
return "hello " +name+", this messge send failed ";
|
|
}
|
|
}
|