确保你jersey-server.jar在类路径中有Jersey ,然后它就像这样简单:
HttpServer server = HttpServerFactory.create("http://localhost:9998/");
server.start();
Run Code Online (Sandbox Code Playgroud)
选择您想要使用的任何端口.
| 归档时间: |
|
| 查看次数: |
3467 次 |
| 最近记录: |