IndexFeignClient.java
571 Bytes
package com.glsx.api.remote;
import com.glsx.api.remote.impl.IndexHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
@FeignClient(name = "${feigin.server.name}",url = "${feigin.server.url}", fallback = IndexHystrix.class)
public interface IndexFeignClient {
@ResponseBody
@RequestMapping(value = "/home", method = {RequestMethod.GET})
String getHome();
}