Skip to content

Commit

Permalink
services path updated
Browse files Browse the repository at this point in the history
  • Loading branch information
imertetsu committed Aug 13, 2024
1 parent eded600 commit eef0dbf
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
8 changes: 1 addition & 7 deletions src/main/java/com/spacecraft/services/EventService.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import lombok.Getter;
import org.springframework.core.io.ClassPathResource;
import org.springframework.stereotype.Service;
import org.springframework.core.io.ClassPathResource;

import java.io.IOException;
import java.util.List;
Expand All @@ -22,13 +21,8 @@ public class EventService {
public void loadData() throws IOException {
ObjectMapper objectMapper = new ObjectMapper();
ClassPathResource resource = new ClassPathResource("persistence/events.json");

<<<<<<< HEAD
events = objectMapper.readValue(resource.getInputStream(), new TypeReference<List<EventDTO>>() {});

=======
events = objectMapper.readValue(resource.getInputStream(), new TypeReference<List<EventDTO>>() {});
>>>>>>> bd3d21a54cffe516cfd463f05ce7ebf842f2e754

for (EventDTO event : events) {
System.out.println(event);
}
Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/spacecraft/services/LatitudeService.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import lombok.Getter;
import org.springframework.core.io.ClassPathResource;
import org.springframework.stereotype.Service;
import org.springframework.core.io.ClassPathResource;

import java.io.IOException;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import lombok.Getter;
import org.springframework.core.io.ClassPathResource;
import org.springframework.stereotype.Service;
import org.springframework.core.io.ClassPathResource;

import java.io.IOException;
import java.util.List;
Expand Down

0 comments on commit eef0dbf

Please sign in to comment.