This commit is contained in:
Looly
2022-04-28 01:30:17 +08:00
parent e0ac5e9961
commit d78219c60c
248 changed files with 621 additions and 3407 deletions

View File

@@ -1,6 +1,5 @@
package cn.hutool.http.server;
import cn.hutool.core.swing.DesktopUtil;
import cn.hutool.http.ContentType;
import cn.hutool.http.HttpUtil;
@@ -9,7 +8,5 @@ public class BlankServerTest {
HttpUtil.createServer(8888)
.addAction("/", (req, res)-> res.write("Hello Hutool Server", ContentType.JSON.getValue()))
.start();
DesktopUtil.browse("http://localhost:8888/");
}
}

View File

@@ -1,6 +1,5 @@
package cn.hutool.http.server;
import cn.hutool.core.swing.DesktopUtil;
import cn.hutool.http.HttpUtil;
public class DocServerTest {
@@ -10,7 +9,5 @@ public class DocServerTest {
// 设置默认根目录,
.setRoot("D:\\workspace\\site\\hutool-site")
.start();
DesktopUtil.browse("http://localhost/");
}
}