diff --git a/tmitocar-service/src/main/java/services/tmitocar/controller/TmitocarServiceController.java b/tmitocar-service/src/main/java/services/tmitocar/controller/TmitocarServiceController.java index ba66920..1ba3cf7 100644 --- a/tmitocar-service/src/main/java/services/tmitocar/controller/TmitocarServiceController.java +++ b/tmitocar-service/src/main/java/services/tmitocar/controller/TmitocarServiceController.java @@ -488,7 +488,7 @@ public ResponseEntity compareText(@RequestParam("label1") String label1, return ResponseEntity.status(HttpStatus.NOT_FOUND).body(err.toJSONString()); } - File templatePath = new File("./tmitocar/templates/" + template); + File templatePath = new File("tmitocar/templates/" + template); if (!templatePath.exists()){ JSONObject err = new JSONObject(); err.put("errorMessage", "Template: " + template + " not found."); diff --git a/tmitocar-service/src/main/java/services/tmitocar/service/TmitocarService.java b/tmitocar-service/src/main/java/services/tmitocar/service/TmitocarService.java index 9820d5d..0d01ff9 100644 --- a/tmitocar-service/src/main/java/services/tmitocar/service/TmitocarService.java +++ b/tmitocar-service/src/main/java/services/tmitocar/service/TmitocarService.java @@ -897,7 +897,7 @@ public void cleanJSONFile(String path){ reader.close(); // Parse the JSON - System.out.println("JSON String: "+ jsonString.toString()); + System.out.println("JSON String: "+ jsonString); JSONParser parser = new JSONParser(JSONParser.MODE_PERMISSIVE); JSONObject json = (JSONObject) parser.parse(jsonString.toString());