feign调用将参数指定
@FeignClient(value= "checkcode",fallbackFactory = redisCheckClientFactory.class )
//@RequestMapping("/checkcode")
public interface RedisCheckClient {
@PostMapping(value ="/checkcode/verify")
public Boolean verify( String key, String code);
}
指定参数
@FeignClient(value= "checkcode",fallbackFactory = redisCheckClientFactory.class )
//@RequestMapping("/checkcode")
public interface RedisCheckClient {
@PostMapping(value ="/checkcode/verify")
public Boolean verify(@RequestParam("key") String key, @RequestParam("code") String code);
// public Boolean verify( String key, String code);
}