Fixed missing port error
This commit is contained in:
parent
f86ffb4467
commit
9bad5ea283
@ -9,7 +9,7 @@ import static spark.Spark.*;
|
||||
|
||||
public class Server {
|
||||
public static void main(String[] args) {
|
||||
if (args[0] != null) {
|
||||
if (args.length >= 1) {
|
||||
port(Integer.parseInt(args[0]));
|
||||
} else {
|
||||
port(8080);
|
||||
|
Loading…
Reference in New Issue
Block a user