diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-16 06:48:48 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-16 06:48:48 -0700 |
commit | 481a902538b951a420d00c32063e0984e4e922d6 (patch) | |
tree | 8379348f3ec40b465a395ed4bb332132d7292ce9 /src/main/java/org/traccar/Main.java | |
parent | ca884b765f3f7a642c435be886dbec40f9d1f661 (diff) | |
download | trackermap-server-481a902538b951a420d00c32063e0984e4e922d6.tar.gz trackermap-server-481a902538b951a420d00c32063e0984e4e922d6.tar.bz2 trackermap-server-481a902538b951a420d00c32063e0984e4e922d6.zip |
Inject data source
Diffstat (limited to 'src/main/java/org/traccar/Main.java')
-rw-r--r-- | src/main/java/org/traccar/Main.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/Main.java b/src/main/java/org/traccar/Main.java index 412ac1f5e..72eeb5885 100644 --- a/src/main/java/org/traccar/Main.java +++ b/src/main/java/org/traccar/Main.java @@ -22,6 +22,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.traccar.broadcast.BroadcastService; import org.traccar.schedule.ScheduleManager; +import org.traccar.storage.DatabaseModule; import org.traccar.web.WebServer; import java.io.File; @@ -114,7 +115,7 @@ public final class Main { public static void run(String configFile) { try { - injector = Guice.createInjector(new MainModule(), new ServletModule()); + injector = Guice.createInjector(new MainModule(), new DatabaseModule(), new ServletModule()); Context.init(configFile); logSystemInfo(); LOGGER.info("Version: " + Main.class.getPackage().getImplementationVersion()); |