mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-24 07:19:46 +08:00
19 lines
520 B
Java
19 lines
520 B
Java
package com.ruoyi.demo.feign;
|
|
|
|
import com.ruoyi.demo.feign.fallback.FeignTestFallback;
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
/**
|
|
* feign测试service
|
|
*
|
|
* @author Lion Li
|
|
*/
|
|
@FeignClient(name = "baidu",url = "http://www.baidu.com",fallback = FeignTestFallback.class)
|
|
public interface FeignTestService {
|
|
|
|
@GetMapping("/s")
|
|
String search(@RequestParam("wd") String wd);
|
|
}
|