Comments (6)
你最初的问题是大小写出现问题,CaseInsensitiveMap这个还是Map本来就是忽略大小写的,所有的大写都会变成小写
from hutool.
implementation 'cn.hutool:hutool-all:5.7.9'
from hutool.
你代码的最后一行 CaseInsensitiveMap::new, 这个方法Map是: 忽略大小写的Map
. 对KEY忽略大小写,get("Value")和get("value")获得的值相同,put进入的值也会被覆盖.
所以会put, get出问题
from hutool.
@gg1229505432 这个是正常的吗
from hutool.
@gg1229505432 所以不是我这么用的对吧
from hutool.
哈哈哈 是的 你用错了. 切记 不要用字符敏感的 Map ~
from hutool.
Related Issues (20)
- Performance issue of Snowflake HOT 1
- org.dromara.hutool.http.HttpUtil#get(java.lang.String) 请求无法成功 HOT 1
- hutool-cache key有效期的使用方式 HOT 1
- 希望能增加一个经纬度处理的工具 HOT 2
- DateUtil.format能否支持增加参数Locale 格式化成其他语言 HOT 1
- 关于ListUtil#setOrPadding的安全检查 HOT 2
- BooleanUtil.andOfWrap针对null取与结果与预期不符 HOT 1
- JSONObject.toBean为null问题 HOT 2
- 图片添加文字水印可以支持45度倾斜多行重复文字的效果么 HOT 1
- cn.hutool.core.io.FileUtil#getTotalLines 在jdk8和jdk21中结果不一致 HOT 1
- cn.hutool.http.HttpUtil#post(java.lang.String, java.lang.String) 这个方法按文档的标准参数调用报异常 HOT 5
- HttpRequest 设置body的时候能否修改isMultiPart的值。 HOT 4
- 需求请求:LocalDateTimeUtil.endOfDay重载一个接收LocalDate的方法 HOT 3
- get请求https时会出现ssl证书问题 HOT 3
- CVE-2023-51075 7.5 Loop with Unreachable Exit Condition ("Infinite Loop") vulnerability with High severity found HOT 1
- 贵团队有支持JPMS的计划吗? HOT 1
- NumberUtil.pow(3,-2) 指数不能为负数 HOT 3
- 能够提供Neo4jUtil HOT 2
- JDK17环境下,JarClassLoader.loadJar()方法异常
- 【question】请问一下hutool有直接读取并返回X509Certificate的方法吗? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hutool.