Skip to content

Commit 02495e4

Browse files
committed
Add example to display how to set cross site host IP for EasyRest.
1 parent 5b425f5 commit 02495e4

File tree

1 file changed

+2
-1
lines changed
  • Example/Example-Quick-Start/src/main/java/com/example

1 file changed

+2
-1
lines changed

Example/Example-Quick-Start/src/main/java/com/example/Example.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33

44
import tech.dbgsoftware.easyrest.EasyRest;
5+
import tech.dbgsoftware.easyrest.network.NettyInit;
56

67
public class Example {
78

89
public static void main(String[] args) {
910
EasyRest easyRest = new EasyRest("classpath:MyExampleApplicationContext.xml");
10-
easyRest.startup("EasyRestServer", 8080);
11+
easyRest.startup("EasyRestServer", new NettyInit("127.0.0.1", 8080));
1112
}
1213

1314
}

0 commit comments

Comments
 (0)