Browse Source

editaUser

master
Juanjo 1 year ago
parent
commit
8ae9422f61
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/main/java/es/fp/edu/conecta2/controladores/WebControlador.java

+ 3
- 3
src/main/java/es/fp/edu/conecta2/controladores/WebControlador.java View File

@ -34,11 +34,11 @@ public class WebControlador {
return "redirect:/"; return "redirect:/";
} }
@GetMapping ("/editar/{1}")
public String editarUser(@PathVariable Integer id, Model modelo){
@RequestMapping ("/editar/{num}")
public String editarUser(@PathVariable int num, Model modelo){
modelo.addAttribute("user", modelo.addAttribute("user",
servicioUser.buscarId(id).get());
servicioUser.buscarId(num).get());
return "editar_usuario"; return "editar_usuario";
} }


Loading…
Cancel
Save