Added service file

Created build config
Changed default port
This commit is contained in:
genuineparts 2024-10-29 18:49:00 +01:00
parent 5565fd2201
commit 67866265ba
3 changed files with 65 additions and 3 deletions

View file

@ -21,7 +21,7 @@ public class Main {
public static void main(String[] args) throws IOException {
refresh();
HttpServer server = HttpServer.create(new InetSocketAddress(8000), 0);
HttpServer server = HttpServer.create(new InetSocketAddress(8111), 0);
server.createContext("/oebbapi", new OebbHandler());
server.setExecutor(null); // creates a default executor
server.start();