使用Feign调用的时候接口的必须加上@RequestParm注解
@Component
@FeignClient(name = "demand-service")
public interface DemandClient {
@GetMapping("demand")
public List queryAllDemands( Date begin,Date end);
}
错误启动:
在Date数据类型前面加上@RequestParm注解正确

使用Feign调用的时候接口的必须加上@RequestParm注解
@Component
@FeignClient(name = "demand-service")
public interface DemandClient {
@GetMapping("demand")
public List queryAllDemands( Date begin,Date end);
}
错误启动:
在Date数据类型前面加上@RequestParm注解正确