Shaojin Wen
Shaojin Wen
新版更快更安全,建议升级
相关Issue #210 @[davionchen](https://github.com/davionchen) 提供的测试数据: 测试字符串 :{"abc":"fasd","testList":[{"abc":"dfadf"}]} 脱敏结果:{"abc":"sha256@60d203f36c2f7d24077b2cd58e03d265df10d5c410d079ee4d1da4ffef8a1230","testList":[{"abc":"sha256@29d5013b028f96981c07198bde9ebb82493fb177dbfbab4d9c82637820c9ffe3"}]} 单位:毫秒 JsonPath:13个未命中,1个命中(abc) | 案例 | Fastjson1ValueFilter | Fastjson2JsonPath | JaywayJsonPath | | ------- | ------- |------- |------- | | 100w循环 | 2801 |3145...
FASTJSON 1.x不再维护,需要升级到FASTJSON 2,FASTJSON2性能更好,也更安全。 https://github.com/alibaba/fastjson2/wiki/fastjson_1_upgrade_cn 根据FASTJSON 1.x升级指南进行升级
The current BigDecimal(String) constructor calls String#toCharArray, which has a memory allocation. ```java public BigDecimal(String val) { this(val.toCharArray(), 0, val.length()); // allocate char[] } ``` When the length is greater than...
as title
Annotation定义 ```java @Retention(RetentionPolicy.RUNTIME) public @interface JSONCompiled { boolean debug() default false; } ``` * 配置 ```java @JSONCompiled(debug=true) class Bean { public int id; } ``` * 效果 将codegen的代码用java.txt的方式输出,方便看生产代码的逻辑