nacos feign

This commit is contained in:
GYJ
2025-02-08 15:38:02 +08:00
parent 26833efde5
commit 5d2533be35
13 changed files with 212 additions and 56 deletions

View File

@@ -0,0 +1,14 @@
package com.czg.feign;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
/**
* @author GYJoker
*/
@FeignClient("system-server")
public interface FeignSystemService {
@GetMapping("/feign/testCall/{name}") // 使用 get 方式,调用服务提供者的 /call/{name} 接口
String testCall(@PathVariable(value = "name") String name);
}