当前位置:网站首页>hutool优雅解析URL链接并获取参数
hutool优雅解析URL链接并获取参数
2022-07-06 08:30:00 【XYLANCC】
UrlBuilder builder = UrlBuilder.ofHttp("www.hutool.cn/aaa/bbb/?a=张三&b=%e6%9d%8e%e5%9b%9b#frag1", CharsetUtil.CHARSET_UTF_8);
// 输出张三
Console.log(builder.getQuery().get("a"));
// 输出李四
Console.log(builder.getQuery().get("b"));
边栏推荐
- Chrome浏览器的crash问题
- Yyds dry goods inventory three JS source code interpretation eventdispatcher
- 从表中名称映射关系修改视频名称
- 【MySQL】鎖
- Tidb backup and recovery introduction
- [research materials] 2021 China online high growth white paper - Download attached
- C language - bit segment
- 【MySQL】数据库的存储过程与存储函数通关教程(完整版)
- 【刷题】牛客网面试必刷TOP101
- How to use information mechanism to realize process mutual exclusion, process synchronization and precursor relationship
猜你喜欢
随机推荐
LDAP應用篇(4)Jenkins接入
egg. JS getting started navigation: installation, use and learning
Analysis of pointer and array written test questions
Tidb backup and recovery introduction
Huawei cloud OBS file upload and download tool class
【Nvidia开发板】常见问题集 (不定时更新)
【ROS】usb_cam相机标定
logback1.3. X configuration details and Practice
从 CSV 文件迁移数据到 TiDB
如何进行接口测试测?有哪些注意事项?保姆级解读
Leetcode question brushing (5.28) hash table
移位运算符
Upgrade tidb with tiup
[research materials] 2022 China yuancosmos white paper - Download attached
JS pure function
Image fusion -- challenges, opportunities and Countermeasures
Rviz仿真时遇到机器人瞬间回到世界坐标原点的问题及可能原因
sublime text中conda环境中plt.show无法弹出显示图片的问题
Is it safe to open an account in Zheshang futures?
What is the use of entering the critical point? How to realize STM32 single chip microcomputer?