From 69d0cd8ec0c14e3744850c04db81b62e4cc0aa16 Mon Sep 17 00:00:00 2001 From: Sofía Benítez Date: Thu, 30 Mar 2023 11:29:30 -0400 Subject: [PATCH] Cambio de nombre de variable --- curriculumsearch/src/main/java/com/roshka/CurriculumsearchApplication.java | 12 ++++++------ curriculumsearch/src/main/java/com/roshka/controller/FeriadoController.java | 3 +-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/curriculumsearch/src/main/java/com/roshka/CurriculumsearchApplication.java b/curriculumsearch/src/main/java/com/roshka/CurriculumsearchApplication.java index 5d665c2..33c02b4 100644 --- a/curriculumsearch/src/main/java/com/roshka/CurriculumsearchApplication.java +++ b/curriculumsearch/src/main/java/com/roshka/CurriculumsearchApplication.java @@ -37,13 +37,13 @@ public class CurriculumsearchApplication { return args -> { try { // read json and write to db - guardarJson(cargoR,"/json/cargo.json",Cargo.class); - guardarJson(convR,"/json/convocatoria.json",ConvocatoriaCargo.class); - guardarJson(depR,"/json/Departamento.json",Departamento.class); +// guardarJson(cargoR,"/json/cargo.json",Cargo.class); +// guardarJson(convR,"/json/convocatoria.json",ConvocatoriaCargo.class); +// guardarJson(depR,"/json/Departamento.json",Departamento.class); guardarJson(ciudR,"/json/Ciudad.json",Ciudad.class); - guardarJson(tecRepo,"/json/tecnologia.json",Tecnologia.class); - guardarJson(insR,"/json/institucion.json",Institucion.class); - guardarJson(postRepo,"/json/postulante.json",Postulante.class); +// guardarJson(tecRepo,"/json/tecnologia.json",Tecnologia.class); +// guardarJson(insR,"/json/institucion.json",Institucion.class); +// guardarJson(postRepo,"/json/postulante.json",Postulante.class); String password = new BCryptPasswordEncoder().encode("test"); RRHHUser testuser = new RRHHUser(); diff --git a/curriculumsearch/src/main/java/com/roshka/controller/FeriadoController.java b/curriculumsearch/src/main/java/com/roshka/controller/FeriadoController.java index 273a7fd..9621e03 100644 --- a/curriculumsearch/src/main/java/com/roshka/controller/FeriadoController.java +++ b/curriculumsearch/src/main/java/com/roshka/controller/FeriadoController.java @@ -62,8 +62,7 @@ public class FeriadoController { } @PostMapping(path = {"/agregar","/modificar/{id}"}) - public String addFeriado(@RequestPart(name = "file") MultipartFile file, - @RequestPart(name = "motivoFeriado") String motivoFeriado, + public String addFeriado(@RequestPart(name = "motivoFeriado") String motivoFeriado, @RequestPart(name = "fecha") String fecha, @PathVariable(required = false) Long id, Model model) { -- libgit2 0.26.0