2
0
Fork 0
mirror of https://github.com/ethauvin/rife2.git synced 2025-05-01 19:08:12 -07:00

Minor hello world tweaks

This commit is contained in:
Geert Bevin 2022-10-30 14:30:25 -04:00
parent e7bf764255
commit b3e15a5aea
3 changed files with 3 additions and 3 deletions

View file

@ -13,6 +13,6 @@ public class HelloLink extends Site {
Route link = get("/link", c-> c.print("<a href='" + c.urlFor(hello) + "'>Hello</a>")); Route link = get("/link", c-> c.print("<a href='" + c.urlFor(hello) + "'>Hello</a>"));
public static void main(String[] args) { public static void main(String[] args) {
new Server().port(4242).start(new HelloLink()); new Server().start(new HelloLink());
} }
} }

View file

@ -13,6 +13,6 @@ public class HelloWorld extends Site {
} }
public static void main(String[] args) { public static void main(String[] args) {
new Server().port(4242).start(new HelloWorld()); new Server().start(new HelloWorld());
} }
} }

View file

@ -803,7 +803,7 @@ public class RifeConfig {
private int port_ = DEFAULT_PORT; private int port_ = DEFAULT_PORT;
private String staticResourceBase_ = DEFAULT_STATIC_RESOURCE_BASE; private String staticResourceBase_ = DEFAULT_STATIC_RESOURCE_BASE;
public static final int DEFAULT_PORT = 4567; public static final int DEFAULT_PORT = 8080;
public static final String DEFAULT_STATIC_RESOURCE_BASE = null; public static final String DEFAULT_STATIC_RESOURCE_BASE = null;
public int getPort() { public int getPort() {