I am using spring boot, spring v4.2.5
I am trying to pass a list of long.
My controller is :
@RequestMapping(value = "/rest/members/{memberId}/payments/{paymentsId}/process/{paymentMode}", method = RequestMethod.PUT)
public void processPayment(@PathVariable("memberId") Long memberId, @PathVariable("paymentsId") List<Long> paymentsId, @PathVariable("paymentMode") PaymentModeEnum paymentMode) {
paymentService.processPayment(paymentsId, paymentMode);
}
Controller never gets called with this link.
http://localhost:8080/rest/members/6/payments/105,106/process/ATM
But it does with this
http://localhost:8080/rest/members/6/payments/105/process/ATM
Is it possible to pass a list of long?