79520405

Date: 2025-03-19 14:00:39
Score: 1.5
Natty:
Report link

The below way is working

URL queryURL = getClass().getClassLoader().getResource("db.mongo.query/" + this.name + ".json");
String query = new String(Files.readAllBytes(Paths.get(queryURL.toURI())));
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Komala Dunna