|
@ -41,20 +41,16 @@ public class WebControlador { |
|
|
|
|
|
|
|
|
@PostMapping ("/actualizar") |
|
|
@PostMapping ("/actualizar") |
|
|
public String actualizaUser(@ModelAttribute("user") User usuario){ |
|
|
public String actualizaUser(@ModelAttribute("user") User usuario){ |
|
|
|
|
|
|
|
|
servicioUser.actualizaId(usuario); |
|
|
servicioUser.actualizaId(usuario); |
|
|
|
|
|
|
|
|
return "redirect:/"; |
|
|
return "redirect:/"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping ("/borrar/{num}") |
|
|
@GetMapping ("/borrar/{num}") |
|
|
public String borrarUser(Model modelo){ |
|
|
|
|
|
/{num} |
|
|
|
|
|
|
|
|
public String borrarUser(@PathVariable int num){ |
|
|
|
|
|
servicioUser.deleteId(num); |
|
|
return "redirect:/"; |
|
|
return "redirect:/"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping("parametros/{a}/{b}/{c}") |
|
|
@RequestMapping("parametros/{a}/{b}/{c}") |
|
|
public String parametros( @PathVariable int a, |
|
|
public String parametros( @PathVariable int a, |
|
|
@PathVariable int b, |
|
|
@PathVariable int b, |
|
|