|
@@ -33,13 +33,13 @@ public class UserServiceApplication {
|
|
|
SpringApplication.run(UserServiceApplication.class, args);
|
|
|
}
|
|
|
|
|
|
- @Value("${server.port}")
|
|
|
- String port;
|
|
|
+ @Value("${foo}")
|
|
|
+ String foo;
|
|
|
|
|
|
@RequestMapping("/hi")
|
|
|
@HystrixCommand(fallbackMethod = "hiError")
|
|
|
public String home(@RequestParam(value = "name", defaultValue = "gaodm") String name) {
|
|
|
- return "hi " + name + " ,i am from port:" + port;
|
|
|
+ return "hi " + name + " ,i am from port:" + foo;
|
|
|
}
|
|
|
|
|
|
public String hiError(String name) {
|