diff --git a/build/classes/java/main/com/spacecraft/services/EventService$1.class b/build/classes/java/main/com/spacecraft/services/EventService$1.class index 8d9a83a..c41133c 100644 Binary files a/build/classes/java/main/com/spacecraft/services/EventService$1.class and b/build/classes/java/main/com/spacecraft/services/EventService$1.class differ diff --git a/build/classes/java/main/com/spacecraft/services/EventService.class b/build/classes/java/main/com/spacecraft/services/EventService.class index 1af4c59..588564d 100644 Binary files a/build/classes/java/main/com/spacecraft/services/EventService.class and b/build/classes/java/main/com/spacecraft/services/EventService.class differ diff --git a/build/classes/java/main/com/spacecraft/services/LatitudeService$1.class b/build/classes/java/main/com/spacecraft/services/LatitudeService$1.class index fbb1716..fcb69b5 100644 Binary files a/build/classes/java/main/com/spacecraft/services/LatitudeService$1.class and b/build/classes/java/main/com/spacecraft/services/LatitudeService$1.class differ diff --git a/build/classes/java/main/com/spacecraft/services/LatitudeService.class b/build/classes/java/main/com/spacecraft/services/LatitudeService.class index 2c759b3..bbccaf0 100644 Binary files a/build/classes/java/main/com/spacecraft/services/LatitudeService.class and b/build/classes/java/main/com/spacecraft/services/LatitudeService.class differ diff --git a/build/classes/java/main/com/spacecraft/services/LongitudeService$1.class b/build/classes/java/main/com/spacecraft/services/LongitudeService$1.class index 0452884..cad0f4a 100644 Binary files a/build/classes/java/main/com/spacecraft/services/LongitudeService$1.class and b/build/classes/java/main/com/spacecraft/services/LongitudeService$1.class differ diff --git a/build/classes/java/main/com/spacecraft/services/LongitudeService.class b/build/classes/java/main/com/spacecraft/services/LongitudeService.class index d59c66c..62ef911 100644 Binary files a/build/classes/java/main/com/spacecraft/services/LongitudeService.class and b/build/classes/java/main/com/spacecraft/services/LongitudeService.class differ diff --git a/build/resources/main/application.properties b/build/resources/main/application.properties index 84dab27..a7f86f1 100644 --- a/build/resources/main/application.properties +++ b/build/resources/main/application.properties @@ -2,6 +2,6 @@ spring.application.name=SpacecraftEvents server.servlet.context-path=/api server.port=8083 -swagger.server.url=localhost:8083/api +swagger.server.url=http://localhost:8083/api spring.output.ansi.enabled=ALWAYS \ No newline at end of file diff --git a/build/tmp/compileJava/compileTransaction/stash-dir/EventController.class.uniqueId3 b/build/tmp/compileJava/compileTransaction/stash-dir/EventController.class.uniqueId3 new file mode 100644 index 0000000..e406e0b Binary files /dev/null and b/build/tmp/compileJava/compileTransaction/stash-dir/EventController.class.uniqueId3 differ diff --git a/build/tmp/compileJava/compileTransaction/stash-dir/EventService$1.class.uniqueId5 b/build/tmp/compileJava/compileTransaction/stash-dir/EventService$1.class.uniqueId5 new file mode 100644 index 0000000..8d9a83a Binary files /dev/null and b/build/tmp/compileJava/compileTransaction/stash-dir/EventService$1.class.uniqueId5 differ diff --git a/build/tmp/compileJava/compileTransaction/stash-dir/EventService.class.uniqueId6 b/build/tmp/compileJava/compileTransaction/stash-dir/EventService.class.uniqueId6 new file mode 100644 index 0000000..1af4c59 Binary files /dev/null and b/build/tmp/compileJava/compileTransaction/stash-dir/EventService.class.uniqueId6 differ diff --git a/build/tmp/compileJava/compileTransaction/stash-dir/LatitudeService$1.class.uniqueId7 b/build/tmp/compileJava/compileTransaction/stash-dir/LatitudeService$1.class.uniqueId7 new file mode 100644 index 0000000..fbb1716 Binary files /dev/null and b/build/tmp/compileJava/compileTransaction/stash-dir/LatitudeService$1.class.uniqueId7 differ diff --git a/build/tmp/compileJava/compileTransaction/stash-dir/LatitudeService.class.uniqueId2 b/build/tmp/compileJava/compileTransaction/stash-dir/LatitudeService.class.uniqueId2 new file mode 100644 index 0000000..2c759b3 Binary files /dev/null and b/build/tmp/compileJava/compileTransaction/stash-dir/LatitudeService.class.uniqueId2 differ diff --git a/build/tmp/compileJava/compileTransaction/stash-dir/LongitudeService$1.class.uniqueId1 b/build/tmp/compileJava/compileTransaction/stash-dir/LongitudeService$1.class.uniqueId1 new file mode 100644 index 0000000..0452884 Binary files /dev/null and b/build/tmp/compileJava/compileTransaction/stash-dir/LongitudeService$1.class.uniqueId1 differ diff --git a/build/tmp/compileJava/compileTransaction/stash-dir/LongitudeService.class.uniqueId4 b/build/tmp/compileJava/compileTransaction/stash-dir/LongitudeService.class.uniqueId4 new file mode 100644 index 0000000..d59c66c Binary files /dev/null and b/build/tmp/compileJava/compileTransaction/stash-dir/LongitudeService.class.uniqueId4 differ diff --git a/build/tmp/compileJava/compileTransaction/stash-dir/PositionService.class.uniqueId0 b/build/tmp/compileJava/compileTransaction/stash-dir/PositionService.class.uniqueId0 new file mode 100644 index 0000000..6f09fd1 Binary files /dev/null and b/build/tmp/compileJava/compileTransaction/stash-dir/PositionService.class.uniqueId0 differ diff --git a/build/tmp/compileJava/previous-compilation-data.bin b/build/tmp/compileJava/previous-compilation-data.bin index e7e30bc..2cf3ccb 100644 Binary files a/build/tmp/compileJava/previous-compilation-data.bin and b/build/tmp/compileJava/previous-compilation-data.bin differ diff --git a/src/main/java/com/spacecraft/services/EventService.java b/src/main/java/com/spacecraft/services/EventService.java index 78251d8..41c1c76 100644 --- a/src/main/java/com/spacecraft/services/EventService.java +++ b/src/main/java/com/spacecraft/services/EventService.java @@ -10,6 +10,7 @@ import java.io.IOException; import java.nio.file.Files; +import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; @@ -22,9 +23,9 @@ public class EventService { @PostConstruct public void loadData() throws IOException { ObjectMapper objectMapper = new ObjectMapper(); + Path path = Paths.get("src", "main", "java", "com", "spacecraft", "persistence", "events.json"); events = objectMapper.readValue( - Files.readAllBytes(Paths.get("src/main/java/com/spacecraft/persistence/events.json")), - new TypeReference>() {} + Files.readAllBytes(path), new TypeReference>() {} ); for (EventDTO event : events) { System.out.println(event); diff --git a/src/main/java/com/spacecraft/services/LatitudeService.java b/src/main/java/com/spacecraft/services/LatitudeService.java index b058052..1003303 100644 --- a/src/main/java/com/spacecraft/services/LatitudeService.java +++ b/src/main/java/com/spacecraft/services/LatitudeService.java @@ -2,6 +2,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; +import com.spacecraft.dtos.EventDTO; import com.spacecraft.dtos.LatitudeDTO; import jakarta.annotation.PostConstruct; import lombok.Getter; @@ -9,6 +10,7 @@ import java.io.IOException; import java.nio.file.Files; +import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; @@ -21,9 +23,9 @@ public class LatitudeService { @PostConstruct public void loadData() throws IOException{ ObjectMapper objectMapper = new ObjectMapper(); + Path path = Paths.get("src", "main", "java", "com", "spacecraft", "persistence", "latitudes.json"); latitudes = objectMapper.readValue( - Files.readAllBytes(Paths.get("src/main/java/com/spacecraft/persistence/latitudes.json")), - new TypeReference>() {} + Files.readAllBytes(path), new TypeReference>() {} ); } } diff --git a/src/main/java/com/spacecraft/services/LongitudeService.java b/src/main/java/com/spacecraft/services/LongitudeService.java index f12f089..7d50e15 100644 --- a/src/main/java/com/spacecraft/services/LongitudeService.java +++ b/src/main/java/com/spacecraft/services/LongitudeService.java @@ -2,6 +2,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; +import com.spacecraft.dtos.EventDTO; import com.spacecraft.dtos.LongitudeDTO; import jakarta.annotation.PostConstruct; import lombok.Getter; @@ -9,6 +10,7 @@ import java.io.IOException; import java.nio.file.Files; +import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; @@ -21,9 +23,10 @@ public class LongitudeService { @PostConstruct public void loadData() throws IOException{ ObjectMapper objectMapper = new ObjectMapper(); + Path path = Paths.get("src", "main", "java", "com", "spacecraft", "persistence", "longitudes.json"); + longitudes = objectMapper.readValue( - Files.readAllBytes(Paths.get("src/main/java/com/spacecraft/persistence/longitudes.json")), - new TypeReference>() {} + Files.readAllBytes(path), new TypeReference>() {} ); for (LongitudeDTO longitudeDTO: longitudes){ System.out.println(longitudeDTO); diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 84dab27..a7f86f1 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -2,6 +2,6 @@ spring.application.name=SpacecraftEvents server.servlet.context-path=/api server.port=8083 -swagger.server.url=localhost:8083/api +swagger.server.url=http://localhost:8083/api spring.output.ansi.enabled=ALWAYS \ No newline at end of file