🐛 RemoteAiFlowService.java Feign Name 定义错误

This commit is contained in:
冷冷 committed 2024-05-15 20:59:37 +08:00
1 parent 39077b50c4
commit 72bc40e3a9
2 files changed
+1 -11

No files matched your search

@@ -99,14 +99,4 @@ public class GlobalBizExceptionHandler {
return R.failed(String.format("%s %s", fieldErrors.get(0).getField(), fieldErrors.get(0).getDefaultMessage()));
}
/**
* 避免 404 重定向到 /error 导致NPE ,ignore-url 需要配置对应端点
* @return R
*/
@DeleteMapping("/error")
@ResponseStatus(HttpStatus.NOT_FOUND)
public R noHandlerFoundException() {
return R.failed(HttpStatus.NOT_FOUND.getReasonPhrase());
}
}
@@ -17,7 +17,7 @@ import java.util.List;
* @author lengleng
* @date 2023/7/14
*/
@FeignClient(contextId = "remoteFlowTaskService", value = ServiceNameConstants.FLOW_TASK_SERVER)
@FeignClient(contextId = "remoteAiTaskService", value = ServiceNameConstants.FLOW_TASK_SERVER)
public interface RemoteAiFlowService {
/**