当前位置:网站首页>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"));
边栏推荐
- JS inheritance method
- ESP系列引脚说明图汇总
- How to use information mechanism to realize process mutual exclusion, process synchronization and precursor relationship
- Restore backup data on S3 compatible storage with br
- Fibonacci sequence
- 面向个性化需求的在线云数据库混合调优系统 | SIGMOD 2022入选论文解读
- sys. argv
- LDAP应用篇(4)Jenkins接入
- 【Nvidia开发板】常见问题集 (不定时更新)
- Ruffian Heng embedded bimonthly, issue 49
猜你喜欢
How to use information mechanism to realize process mutual exclusion, process synchronization and precursor relationship
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
PLT in Matplotlib tight_ layout()
Yyds dry goods inventory three JS source code interpretation eventdispatcher
sublime text没关闭其他运行就使用CTRL+b运行另外的程序问题
[MySQL] log
What is the use of entering the critical point? How to realize STM32 single chip microcomputer?
tree树的精准查询
Zhong Xuegao, who cannot be melted, cannot escape the life cycle of online celebrity products
egg. JS project deployment online server
随机推荐
Rviz仿真时遇到机器人瞬间回到世界坐标原点的问题及可能原因
【Nvidia开发板】常见问题集 (不定时更新)
torch建立的网络模型使用torchviz显示
ESP series pin description diagram summary
Deep learning: derivation of shallow neural networks and deep neural networks
化不掉的钟薛高,逃不出网红产品的生命周期
PLT in Matplotlib tight_ layout()
Analysis of pointer and array written test questions
Char to leading 0
MySQL learning records 12jdbc operation transactions
Online yaml to CSV tool
MySQL learning record 07 index (simple understanding)
leetcode刷题 (5.29) 哈希表
[MySQL] database stored procedure and storage function clearance tutorial (full version)
Hcip day 16
JS pure function
Personalized online cloud database hybrid optimization system | SIGMOD 2022 selected papers interpretation
MySQL learning record 10getting started with JDBC
China vanadium battery Market Research and future prospects report (2022 Edition)
All the ArrayList knowledge you want to know is here