'How to get checkbox values as array in spring-boot
I'm trying to make my front in angular communicates with my backend in java spring-boot, i have a list that contais a row with data , this rows is an array like this:
https://i.stack.imgur.com/Dc03t.png
i have in my front in angular this service
gerarPDFSelecionados(boleto: number[]): Observable<any>{
const path = `${this.PREFIX_URL}consulta/pdf/selecionados`;
const body = boleto;
const options = { observe: 'response', responseType: 'blob' };
return this.httpClientService.core.postOption({ path, body, options});
i'm going to take all these rows by an ID , I would'like to know how can i make in spring boot to my endpoint receive more than one id, in this case it's going to receive an array of ids and it's gonna return a pdf, but the important thing right now is how can i capture this arrays of id in my controller in backend that front is gonna send based on the ones that i selected in checkbox, because it's gonna return a pdf of the rows that i selected.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
