aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/Main.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-16 16:20:13 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-16 16:20:13 -0700
commitb100cb211161d1014dfaa1ab532f1670c699e80d (patch)
tree48b9191e793391f87e9fe5399d6ddf966040c184 /src/main/java/org/traccar/Main.java
parentb47eca7a90438e738eb1486664717cccc277865f (diff)
downloadtrackermap-server-b100cb211161d1014dfaa1ab532f1670c699e80d.tar.gz
trackermap-server-b100cb211161d1014dfaa1ab532f1670c699e80d.tar.bz2
trackermap-server-b100cb211161d1014dfaa1ab532f1670c699e80d.zip
Improve web injection
Diffstat (limited to 'src/main/java/org/traccar/Main.java')
-rw-r--r--src/main/java/org/traccar/Main.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/Main.java b/src/main/java/org/traccar/Main.java
index e3286fd5e..bf69b565d 100644
--- a/src/main/java/org/traccar/Main.java
+++ b/src/main/java/org/traccar/Main.java
@@ -17,12 +17,12 @@ package org.traccar;
import com.google.inject.Guice;
import com.google.inject.Injector;
-import com.google.inject.servlet.ServletModule;
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.WebModule;
import org.traccar.web.WebServer;
import java.io.File;
@@ -115,7 +115,7 @@ public final class Main {
public static void run(String configFile) {
try {
- injector = Guice.createInjector(new MainModule(), new DatabaseModule(), new ServletModule());
+ injector = Guice.createInjector(new MainModule(), new DatabaseModule(), new WebModule());
Context.init(configFile);
logSystemInfo();
LOGGER.info("Version: " + Main.class.getPackage().getImplementationVersion());