My controller:
@GetMapping("/deletesocio/{id}")
public String delSocios(@PathVariable Long id){
    socioSer.borrar(socioService.buscarPorId(id));
    return "redirect:/webapp/socios";
}
My HTML
<tr th:each="soc : ${list}">
    <td th:text="${soc.idSocio}">#</td>
    <td th:text="${soc.nombreSocio}">Nombre</td>
    <td class="button778"><button type="button" 
    th:href="@{/webapp/delsocio/${soc.idSocio}}"></button></td>
</tr>
I want to delete the object by clicking this button who pass de id to the controller (well, thats the idea), could any one help me please?? thank you very much
 
     
    