依赖
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.4.6</version>
</dependency>
代码示例// https://www.hutool.cn/aaa/bbb?ie=UTF-8&wd=test
// https://www.hutool.cn/aaa/bbb?ie=UTF-8&wd=test
String buildUrl = UrlBuilder.create()
.setScheme("https")
.setHost("www.hutool.cn")
.addPath("/aaa").addPath("bbb")
.addQuery("ie", "UTF-8")
.addQuery("wd", "test")
.build();
2 comments
多个参数是传对象么
又发现一个好站,收藏了~以后会经常光顾的∠( ᐛ 」∠)_