mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add NetUtil.isopen
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package cn.hutool.http.server;
|
||||
|
||||
import cn.hutool.core.swing.DesktopUtil;
|
||||
import cn.hutool.http.HttpUtil;
|
||||
|
||||
public class DocServerTest {
|
||||
|
||||
public static void main(String[] args) {
|
||||
HttpUtil.createServer(80)
|
||||
// 设置默认根目录,
|
||||
.setRoot("D:\\workspace\\site\\hutool-site")
|
||||
// 返回JSON数据测试
|
||||
.start();
|
||||
|
||||
DesktopUtil.browse("http://localhost/");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user