Spring boot 如果作为URL的一部分传递,则假装客户端编码获取参数
我为我的假客户机提供了以下代码Spring boot 如果作为URL的一部分传递,则假装客户端编码获取参数,spring-boot,get,feign,Spring Boot,Get,Feign,我为我的假客户机提供了以下代码 @FeignClient(value = "somename", url = "${someurl}") public interface TagServiceClient { @Timed("asdf") @GetMapping(path = "api/foos") List<FooTO> getAllFooForOperators(@RequestParam(value = "operators") List<Str
@FeignClient(value = "somename", url = "${someurl}")
public interface TagServiceClient {
@Timed("asdf")
@GetMapping(path = "api/foos")
List<FooTO> getAllFooForOperators(@RequestParam(value = "operators") List<String> operators);
@Timed("qwer")
@GetMapping(path = "api/yyy")
List<YYYTO> getAllYYYForOperators(@RequestParam(value = "operators") List<String> operators);
}
@FeignClient(value=“somename”,url=“${someurl}”)
公共接口TagServiceClient{
@定时(“asdf”)
@GetMapping(path=“api/foos”)
列出getAllFooForOperators(@RequestParam(value=“operators”)列出运算符);
@定时(“qwer”)
@GetMapping(path=“api/yyy”)
列出GetAllyyyyForOperators(@RequestParam(value=“operators”)列出运算符);
}
如何对第一个方法的运算符进行编码getAllFooForOperators
?我不想对另一个方法的参数进行编码GetAllyyyyForOperators
。我对/
和&
有问题,但我想处理和编码所有特殊字符