摘要: 【思路】 按位置将模式分为三组,使用子模式保留前后两组,中间部分替换成星号。 【代码】 String str="abcdefghij"; String newStr=str.replaceAll("(\\w{3})(\\w{4})(\\w{3})","$1****$3"); System.out.p 阅读全文
posted @ 2022-03-07 21:05 逆火狂飙 阅读(1082) 评论(0) 推荐(0)
摘要: 一.【遮盖脱敏方式】 需求:将十位数字遮盖中间四位 实现一:substr方法(不可逆,脱敏前后等长) 代码: select substr('1234567890',1,3)||'****'||substr('1234567890',-3) as masked from dual 效果: 123456 阅读全文
posted @ 2022-03-07 16:37 逆火狂飙 阅读(563) 评论(1) 推荐(0)
摘要: 下载地址:https://files.cnblogs.com/files/heyang78/SimpleSpringBootApp220307.rar?t=1646618240 是用SpringBoot2.5.6版本,内含一个App一个rest控制器,响应localhost:8080/sayhell 阅读全文
posted @ 2022-03-07 10:01 逆火狂飙 阅读(45) 评论(0) 推荐(0)
摘要: 指令: [hy@localhost src]$ ./redis-cli 127.0.0.1:6379> set ceo 1234 OK 127.0.0.1:6379> get ceo "1234" 127.0.0.1:6379> expire ceo 15 (integer) 1 127.0.0.1 阅读全文
posted @ 2022-03-07 08:42 逆火狂飙 阅读(238) 评论(0) 推荐(0)
生当作人杰 死亦为鬼雄 至今思项羽 不肯过江东