Method has too many Body parameters: public abstract java.util.List com.yun.client.DemandClient.que(

Posted SmallCuteMonkey

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Method has too many Body parameters: public abstract java.util.List com.yun.client.DemandClient.que(相关的知识,希望对你有一定的参考价值。

SpringCloud使用Feign进行远程调用的时候接口的必须加上@RequestParm注解

@Component
@FeignClient(name = "demand-service")
public interface DemandClient {

    @GetMapping("demand")
    public List<Demand> queryAllDemands( Date begin,Date end);
}

错误启动:
在每个Date数据类型前面加上@RequestParm注解正确

以上是关于Method has too many Body parameters: public abstract java.util.List com.yun.client.DemandClient.que(的主要内容,如果未能解决你的问题,请参考以下文章

caused by: java.lang.IllegalStateException: Method has too many Body parameters: 多参数问题

nested exception is java.lang.IllegalStateException: Method has too many Body parameters问题解决

nested exception is java.lang.IllegalStateException: Method has too many Body parameters问题解决

Method has too many Body parameters: public abstract java.util.List com.yun.client.DemandClient.que(

TOO_MANY_REQUESTS/12/disk usage exceeded flood-stage watermark, index has read-only-allow-delete

SpringCloud Feign调用报错feign.RetryableException: too many bytes written executing