|
@@ -1,6 +1,7 @@
|
|
|
package com.diagbot.client;
|
|
|
|
|
|
|
|
|
+import com.diagbot.client.hystrix.CRFServiceHystrix;
|
|
|
import com.diagbot.vo.CRFVo;
|
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -12,10 +13,10 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
* @author: Mark Huang
|
|
|
* @time: 2019/12/13 9:52
|
|
|
*/
|
|
|
-@FeignClient(value = "CRF-service", url="${CRF.url}")
|
|
|
+@FeignClient(value = "CRF-service", url="${CRF.url}", fallback = CRFServiceHystrix.class)
|
|
|
public interface CRFServiceClient {
|
|
|
|
|
|
- @PostMapping(value = "")
|
|
|
+ @PostMapping(value = "/api/mr_info_ex/entity_predict")
|
|
|
String getAnnotation(@RequestBody CRFVo crfVo);
|
|
|
}
|
|
|
|