Commit 69d0cd8e by Sofía Benitez

Cambio de nombre de variable

parent e489f2ad
...@@ -37,13 +37,13 @@ public class CurriculumsearchApplication { ...@@ -37,13 +37,13 @@ public class CurriculumsearchApplication {
return args -> { return args -> {
try { try {
// read json and write to db // read json and write to db
guardarJson(cargoR,"/json/cargo.json",Cargo.class); // guardarJson(cargoR,"/json/cargo.json",Cargo.class);
guardarJson(convR,"/json/convocatoria.json",ConvocatoriaCargo.class); // guardarJson(convR,"/json/convocatoria.json",ConvocatoriaCargo.class);
guardarJson(depR,"/json/Departamento.json",Departamento.class); // guardarJson(depR,"/json/Departamento.json",Departamento.class);
guardarJson(ciudR,"/json/Ciudad.json",Ciudad.class); guardarJson(ciudR,"/json/Ciudad.json",Ciudad.class);
guardarJson(tecRepo,"/json/tecnologia.json",Tecnologia.class); // guardarJson(tecRepo,"/json/tecnologia.json",Tecnologia.class);
guardarJson(insR,"/json/institucion.json",Institucion.class); // guardarJson(insR,"/json/institucion.json",Institucion.class);
guardarJson(postRepo,"/json/postulante.json",Postulante.class); // guardarJson(postRepo,"/json/postulante.json",Postulante.class);
String password = new BCryptPasswordEncoder().encode("test"); String password = new BCryptPasswordEncoder().encode("test");
RRHHUser testuser = new RRHHUser(); RRHHUser testuser = new RRHHUser();
......
...@@ -62,8 +62,7 @@ public class FeriadoController { ...@@ -62,8 +62,7 @@ public class FeriadoController {
} }
@PostMapping(path = {"/agregar","/modificar/{id}"}) @PostMapping(path = {"/agregar","/modificar/{id}"})
public String addFeriado(@RequestPart(name = "file") MultipartFile file, public String addFeriado(@RequestPart(name = "motivoFeriado") String motivoFeriado,
@RequestPart(name = "motivoFeriado") String motivoFeriado,
@RequestPart(name = "fecha") String fecha, @RequestPart(name = "fecha") String fecha,
@PathVariable(required = false) Long id, @PathVariable(required = false) Long id,
Model model) { Model model) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment