mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
6.x
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<parent>
|
||||
<groupId>cn.hutool</groupId>
|
||||
<artifactId>hutool-parent</artifactId>
|
||||
<version>5.8.0.M5</version>
|
||||
<version>6.0.0.M1</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>hutool-http</artifactId>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
package cn.hutool.http;
|
||||
|
||||
import cn.hutool.core.util.EscapeUtil;
|
||||
import cn.hutool.core.text.escape.EscapeUtil;
|
||||
import cn.hutool.core.util.ReUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
|
||||
|
@@ -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/");
|
||||
}
|
||||
}
|
||||
|
@@ -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/");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user