Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@PostMapping(value = "/agregar")
public String guardarProducto(@ModelAttribute Producto producto) {
productosRepository.save(producto);
return "redirect:/productos/agregar";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment