【数据脱敏】身份证,手机号,密码数据脱敏hutool

【数据脱敏】身份证,手机号,密码数据脱敏hutool_第1张图片
在项目开发过程中,例如:身份证号码,电话号码,地址,邮箱号码这类敏感信息,希望不被别人看到。这时如果时前端做了脱敏操作,人们可以通过F12调试看到请求返回信息,仍能看到。所以需要后台开发做数据脱敏操作

1、安装使用

1.1、Maven

在项目的pom.xml的dependencies中加入以下内容:( 注意:更新版本,可能老版本有些Api没有

<dependency>
    <groupId>cn.hutool</groupId>
    <artifactId>hutool-all</artifactId>
    <version>5.8.10</version>
</dependency>

1.2、Gradle

implementation 'cn.hutool:hutool-all:5.8.10'

2、使用说明

现阶段支持的脱敏数据类型包括:

用户id
中文姓名
身份证号
座机号
手机号
地址
电子邮件
密码
中国大陆车牌,包含普通车辆、新能源车辆
银行卡
整体来说,所谓脱敏就是隐藏掉信息中的一部分关键信息,用*代替,自定义隐藏可以使用StrUtil.hide方法完成

2.1、使用

我们以身份证号码、手机号码、密码为例:

package com.ucloud.provider.zhaogong.controller;

import cn.hutool.core.util.DesensitizedUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class DesensitizedUtilTest {

    private static Logger logger=LoggerFactory.getLogger(DesensitizedUtilTest.class);
    public static void main(String[] args) {
        //身份证
        String idCardNum = DesensitizedUtil.idCardNum("51343620000320711X", 1, 2);
        logger.info("idCardNum:{}",idCardNum);

        //电话
        String mobilePhone = DesensitizedUtil.mobilePhone("18049531999");
        logger.info("mobilePhone:{}",mobilePhone);

        //密码
        String password = DesensitizedUtil.password("1234567890");
        logger.info("password:{}",password);
    }
}

"C:\Program Files\Java\jdk1.8.0_301\bin\java.exe" "-javaagent:D:\idea2020\IntelliJ IDEA 2020.2.4\lib\idea_rt.jar=36717:D:\idea2020\IntelliJ IDEA 2020.2.4\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_301\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_301\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_301\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_301\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_301\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_301\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_301\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_301\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_301\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_301\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_301\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_301\jre\lib\rt.jar;D:\test\dev3.0zhaogong\ucloud-zhaogong-server\ucloud-zhaogong-server\target\classes;D:\repository\com\ucloud\ucloud-starter-spring-cloud\1.0.0-SNAPSHOT\ucloud-starter-spring-cloud-1.0.0-20220601.121159-22.jar;D:\repository\com\ucloud\ucloud-starter-spring\1.0.0-SNAPSHOT\ucloud-starter-spring-1.0.0-20220622.083437-49.jar;D:\repository\com\alibaba\csp\sentinel-core\1.8.4\sentinel-core-1.8.4.jar;D:\repository\io\springfox\springfox-swagger2\2.9.2\springfox-swagger2-2.9.2.jar;D:\repository\io\swagger\swagger-annotations\1.5.20\swagger-annotations-1.5.20.jar;D:\repository\io\swagger\swagger-models\1.5.20\swagger-models-1.5.20.jar;D:\repository\io\springfox\springfox-spi\2.9.2\springfox-spi-2.9.2.jar;D:\repository\io\springfox\springfox-core\2.9.2\springfox-core-2.9.2.jar;D:\repository\io\springfox\springfox-schema\2.9.2\springfox-schema-2.9.2.jar;D:\repository\io\springfox\springfox-swagger-common\2.9.2\springfox-swagger-common-2.9.2.jar;D:\repository\io\springfox\springfox-spring-web\2.9.2\springfox-spring-web-2.9.2.jar;D:\repository\com\fasterxml\classmate\1.5.0\classmate-1.5.0.jar;D:\repository\org\springframework\plugin\spring-plugin-core\1.2.0.RELEASE\spring-plugin-core-1.2.0.RELEASE.jar;D:\repository\org\springframework\plugin\spring-plugin-metadata\1.2.0.RELEASE\spring-plugin-metadata-1.2.0.RELEASE.jar;D:\repository\org\mapstruct\mapstruct\1.2.0.Final\mapstruct-1.2.0.Final.jar;D:\repository\io\springfox\springfox-swagger-ui\2.9.2\springfox-swagger-ui-2.9.2.jar;D:\repository\com\google\code\gson\gson\2.8.6\gson-2.8.6.jar;D:\repository\com\ucloud\ucloud-starter-spring-biz\1.0.0-SNAPSHOT\ucloud-starter-spring-biz-1.0.0-20220609.020520-22.jar;D:\repository\com\ucloud\ucloud-starter-pagehelper\1.0.0-SNAPSHOT\ucloud-starter-pagehelper-1.0.0-20220511.084217-12.jar;D:\repository\com\github\pagehelper\pagehelper\5.0.0\pagehelper-5.0.0.jar;D:\repository\com\github\jsqlparser\jsqlparser\0.9.5\jsqlparser-0.9.5.jar;D:\repository\com\ucloud\ucloud-starter-sentinel\1.0.0-SNAPSHOT\ucloud-starter-sentinel-1.0.0-20220617.074631-17.jar;D:\repository\com\alibaba\cloud\spring-cloud-starter-alibaba-sentinel\2.2.6.RELEASE\spring-cloud-starter-alibaba-sentinel-2.2.6.RELEASE.jar;D:\repository\com\alibaba\csp\sentinel-transport-simple-http\1.8.4\sentinel-transport-simple-http-1.8.4.jar;D:\repository\com\alibaba\csp\sentinel-transport-common\1.8.4\sentinel-transport-common-1.8.4.jar;D:\repository\com\alibaba\csp\sentinel-annotation-aspectj\1.8.4\sentinel-annotation-aspectj-1.8.4.jar;D:\repository\com\alibaba\cloud\spring-cloud-circuitbreaker-sentinel\2.2.6.RELEASE\spring-cloud-circuitbreaker-sentinel-2.2.6.RELEASE.jar;D:\repository\com\alibaba\csp\sentinel-reactor-adapter\1.8.4\sentinel-reactor-adapter-1.8.4.jar;D:\repository\com\alibaba\csp\sentinel-spring-webflux-adapter\1.8.4\sentinel-spring-webflux-adapter-1.8.4.jar;D:\repository\com\alibaba\csp\sentinel-spring-webmvc-adapter\1.8.4\sentinel-spring-webmvc-adapter-1.8.4.jar;D:\repository\com\alibaba\csp\sentinel-parameter-flow-control\1.8.4\sentinel-parameter-flow-control-1.8.4.jar;D:\repository\com\googlecode\concurrentlinkedhashmap\concurrentlinkedhashmap-lru\1.4.2\concurrentlinkedhashmap-lru-1.4.2.jar;D:\repository\com\alibaba\csp\sentinel-cluster-server-default\1.8.4\sentinel-cluster-server-default-1.8.4.jar;D:\repository\com\alibaba\csp\sentinel-cluster-common-default\1.8.4\sentinel-cluster-common-default-1.8.4.jar;D:\repository\com\alibaba\csp\sentinel-cluster-client-default\1.8.4\sentinel-cluster-client-default-1.8.4.jar;D:\repository\com\alibaba\cloud\spring-cloud-alibaba-sentinel-datasource\2.2.6.RELEASE\spring-cloud-alibaba-sentinel-datasource-2.2.6.RELEASE.jar;D:\repository\com\alibaba\csp\sentinel-datasource-nacos\1.8.4\sentinel-datasource-nacos-1.8.4.jar;D:\repository\com\alibaba\csp\sentinel-datasource-extension\1.8.4\sentinel-datasource-extension-1.8.4.jar;D:\repository\org\springframework\cloud\spring-cloud-starter-openfeign\2.2.9.RELEASE\spring-cloud-starter-openfeign-2.2.9.RELEASE.jar;D:\repository\org\springframework\cloud\spring-cloud-starter\2.2.9.RELEASE\spring-cloud-starter-2.2.9.RELEASE.jar;D:\repository\org\springframework\security\spring-security-rsa\1.0.9.RELEASE\spring-security-rsa-1.0.9.RELEASE.jar;D:\repository\org\bouncycastle\bcpkix-jdk15on\1.64\bcpkix-jdk15on-1.64.jar;D:\repository\org\bouncycastle\bcprov-jdk15on\1.64\bcprov-jdk15on-1.64.jar;D:\repository\org\springframework\cloud\spring-cloud-openfeign-core\2.2.9.RELEASE\spring-cloud-openfeign-core-2.2.9.RELEASE.jar;D:\repository\org\springframework\cloud\spring-cloud-netflix-ribbon\2.2.9.RELEASE\spring-cloud-netflix-ribbon-2.2.9.RELEASE.jar;D:\repository\org\springframework\cloud\spring-cloud-netflix-archaius\2.2.9.RELEASE\spring-cloud-netflix-archaius-2.2.9.RELEASE.jar;D:\repository\io\github\openfeign\form\feign-form-spring\3.8.0\feign-form-spring-3.8.0.jar;D:\repository\io\github\openfeign\form\feign-form\3.8.0\feign-form-3.8.0.jar;D:\repository\commons-fileupload\commons-fileupload\1.3.3\commons-fileupload-1.3.3.jar;D:\repository\org\springframework\spring-web\5.2.5.RELEASE\spring-web-5.2.5.RELEASE.jar;D:\repository\org\springframework\spring-beans\5.2.5.RELEASE\spring-beans-5.2.5.RELEASE.jar;D:\repository\org\springframework\cloud\spring-cloud-commons\2.2.9.RELEASE\spring-cloud-commons-2.2.9.RELEASE.jar;D:\repository\io\github\openfeign\feign-slf4j\10.12\feign-slf4j-10.12.jar;D:\repository\io\github\openfeign\feign-hystrix\10.12\feign-hystrix-10.12.jar;D:\repository\com\netflix\archaius\archaius-core\0.7.7\archaius-core-0.7.7.jar;D:\repository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;D:\repository\com\netflix\hystrix\hystrix-core\1.5.18\hystrix-core-1.5.18.jar;D:\repository\org\springframework\cloud\spring-cloud-netflix-hystrix\2.2.9.RELEASE\spring-cloud-netflix-hystrix-2.2.9.RELEASE.jar;D:\repository\org\springframework\cloud\spring-cloud-starter-hystrix\1.4.7.RELEASE\spring-cloud-starter-hystrix-1.4.7.RELEASE.jar;D:\repository\org\springframework\cloud\spring-cloud-starter-netflix-hystrix\2.2.9.RELEASE\spring-cloud-starter-netflix-hystrix-2.2.9.RELEASE.jar;D:\repository\org\springframework\cloud\spring-cloud-starter-netflix-archaius\2.2.9.RELEASE\spring-cloud-starter-netflix-archaius-2.2.9.RELEASE.jar;D:\repository\com\netflix\hystrix\hystrix-serialization\1.5.18\hystrix-serialization-1.5.18.jar;D:\repository\com\fasterxml\jackson\module\jackson-module-afterburner\2.10.1\jackson-module-afterburner-2.10.1.jar;D:\repository\com\netflix\hystrix\hystrix-metrics-event-stream\1.5.18\hystrix-metrics-event-stream-1.5.18.jar;D:\repository\com\netflix\hystrix\hystrix-javanica\1.5.18\hystrix-javanica-1.5.18.jar;D:\repository\io\reactivex\rxjava-reactive-streams\1.2.1\rxjava-reactive-streams-1.2.1.jar;D:\repository\com\alibaba\cloud\spring-cloud-starter-alibaba-nacos-config\2.2.6.RELEASE\spring-cloud-starter-alibaba-nacos-config-2.2.6.RELEASE.jar;D:\repository\com\alibaba\spring\spring-context-support\1.0.10\spring-context-support-1.0.10.jar;D:\repository\com\alibaba\nacos\nacos-client\1.4.2\nacos-client-1.4.2.jar;D:\repository\com\alibaba\nacos\nacos-common\1.4.2\nacos-common-1.4.2.jar;D:\repository\org\apache\httpcomponents\httpasyncclient\4.1.4\httpasyncclient-4.1.4.jar;D:\repository\org\apache\httpcomponents\httpcore-nio\4.4.13\httpcore-nio-4.4.13.jar;D:\repository\com\alibaba\nacos\nacos-api\1.4.2\nacos-api-1.4.2.jar;D:\repository\io\prometheus\simpleclient\0.5.0\simpleclient-0.5.0.jar;D:\repository\com\alibaba\cloud\spring-cloud-starter-alibaba-nacos-discovery\2.2.6.RELEASE\spring-cloud-starter-alibaba-nacos-discovery-2.2.6.RELEASE.jar;D:\repository\com\alibaba\cloud\spring-cloud-alibaba-commons\2.2.6.RELEASE\spring-cloud-alibaba-commons-2.2.6.RELEASE.jar;D:\repository\org\springframework\cloud\spring-cloud-starter-netflix-ribbon\2.2.9.RELEASE\spring-cloud-starter-netflix-ribbon-2.2.9.RELEASE.jar;D:\repository\com\netflix\ribbon\ribbon\2.3.0\ribbon-2.3.0.jar;D:\repository\com\netflix\ribbon\ribbon-transport\2.3.0\ribbon-transport-2.3.0.jar;D:\repository\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;D:\repository\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;D:\repository\javax\inject\javax.inject\1\javax.inject-1.jar;D:\repository\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;D:\repository\com\netflix\ribbon\ribbon-core\2.3.0\ribbon-core-2.3.0.jar;D:\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;D:\repository\com\netflix\ribbon\ribbon-httpclient\2.3.0\ribbon-httpclient-2.3.0.jar;D:\repository\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;D:\repository\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;D:\repository\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;D:\repository\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;D:\repository\com\netflix\servo\servo-core\0.12.21\servo-core-0.12.21.jar;D:\repository\com\netflix\netflix-commons\netflix-commons-util\0.3.0\netflix-commons-util-0.3.0.jar;D:\repository\com\netflix\ribbon\ribbon-loadbalancer\2.3.0\ribbon-loadbalancer-2.3.0.jar;D:\repository\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;D:\repository\io\reactivex\rxjava\1.3.8\rxjava-1.3.8.jar;D:\repository\com\ucloud\ucloud-starter-db\1.0.0-SNAPSHOT\ucloud-starter-db-1.0.0-20221019.081311-33.jar;D:\repository\org\springframework\boot\spring-boot-starter-jdbc\2.2.6.RELEASE\spring-boot-starter-jdbc-2.2.6.RELEASE.jar;D:\repository\com\zaxxer\HikariCP\3.4.1\HikariCP-3.4.1.jar;D:\repository\org\springframework\spring-jdbc\5.2.5.RELEASE\spring-jdbc-5.2.5.RELEASE.jar;D:\repository\org\springframework\spring-tx\5.2.5.RELEASE\spring-tx-5.2.5.RELEASE.jar;D:\repository\org\springframework\boot\spring-boot-starter-data-jpa\2.2.6.RELEASE\spring-boot-starter-data-jpa-2.2.6.RELEASE.jar;D:\repository\jakarta\activation\jakarta.activation-api\1.2.2\jakarta.activation-api-1.2.2.jar;D:\repository\jakarta\persistence\jakarta.persistence-api\2.2.3\jakarta.persistence-api-2.2.3.jar;D:\repository\jakarta\transaction\jakarta.transaction-api\1.3.3\jakarta.transaction-api-1.3.3.jar;D:\repository\org\hibernate\hibernate-core\5.4.9.Final\hibernate-core-5.4.9.Final.jar;D:\repository\org\jboss\logging\jboss-logging\3.3.1.Final\jboss-logging-3.3.1.Final.jar;D:\repository\org\javassist\javassist\3.26.0-GA\javassist-3.26.0-GA.jar;D:\repository\net\bytebuddy\byte-buddy\1.10.8\byte-buddy-1.10.8.jar;D:\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;D:\repository\org\jboss\jandex\2.1.1.Final\jandex-2.1.1.Final.jar;D:\repository\org\dom4j\dom4j\2.1.1\dom4j-2.1.1.jar;D:\repository\org\hibernate\common\hibernate-commons-annotations\5.1.0.Final\hibernate-commons-annotations-5.1.0.Final.jar;D:\repository\org\springframework\data\spring-data-jpa\2.2.6.RELEASE\spring-data-jpa-2.2.6.RELEASE.jar;D:\repository\org\springframework\data\spring-data-commons\2.2.6.RELEASE\spring-data-commons-2.2.6.RELEASE.jar;D:\repository\org\springframework\spring-orm\5.2.5.RELEASE\spring-orm-5.2.5.RELEASE.jar;D:\repository\org\springframework\spring-context\5.2.5.RELEASE\spring-context-5.2.5.RELEASE.jar;D:\repository\org\springframework\spring-aspects\5.2.5.RELEASE\spring-aspects-5.2.5.RELEASE.jar;D:\repository\com\alibaba\druid\1.1.21\druid-1.1.21.jar;D:\repository\com\alibaba\druid-spring-boot-starter\1.1.21\druid-spring-boot-starter-1.1.21.jar;D:\repository\mysql\mysql-connector-java\5.1.43\mysql-connector-java-5.1.43.jar;D:\repository\org\jetbrains\annotations\18.0.0\annotations-18.0.0.jar;D:\repository\com\ucloud\ucloud-starter-cache\1.0.0-SNAPSHOT\ucloud-starter-cache-1.0.0-20220505.054213-19.jar;D:\repository\org\springframework\boot\spring-boot-starter-web\2.2.6.RELEASE\spring-boot-starter-web-2.2.6.RELEASE.jar;D:\repository\org\springframework\boot\spring-boot-starter-json\2.2.6.RELEASE\spring-boot-starter-json-2.2.6.RELEASE.jar;D:\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.10.1\jackson-datatype-jdk8-2.10.1.jar;D:\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.10.1\jackson-datatype-jsr310-2.10.1.jar;D:\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.10.1\jackson-module-parameter-names-2.10.1.jar;D:\repository\org\springframework\boot\spring-boot-starter-tomcat\2.2.6.RELEASE\spring-boot-starter-tomcat-2.2.6.RELEASE.jar;D:\repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.33\tomcat-embed-core-9.0.33.jar;D:\repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.33\tomcat-embed-el-9.0.33.jar;D:\repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.33\tomcat-embed-websocket-9.0.33.jar;D:\repository\org\springframework\boot\spring-boot-starter-validation\2.2.6.RELEASE\spring-boot-starter-validation-2.2.6.RELEASE.jar;D:\repository\jakarta\validation\jakarta.validation-api\2.0.2\jakarta.validation-api-2.0.2.jar;D:\repository\org\hibernate\validator\hibernate-validator\6.0.18.Final\hibernate-validator-6.0.18.Final.jar;D:\repository\org\springframework\spring-webmvc\5.2.5.RELEASE\spring-webmvc-5.2.5.RELEASE.jar;D:\repository\org\springframework\spring-expression\5.2.5.RELEASE\spring-expression-5.2.5.RELEASE.jar;D:\repository\org\springframework\boot\spring-boot-starter-aop\2.2.6.RELEASE\spring-boot-starter-aop-2.2.6.RELEASE.jar;D:\repository\org\springframework\spring-aop\5.2.5.RELEASE\spring-aop-5.2.5.RELEASE.jar;D:\repository\org\aspectj\aspectjweaver\1.9.4\aspectjweaver-1.9.4.jar;D:\repository\org\springframework\boot\spring-boot-starter-actuator\2.2.6.RELEASE\spring-boot-starter-actuator-2.2.6.RELEASE.jar;D:\repository\org\springframework\boot\spring-boot-actuator-autoconfigure\2.2.6.RELEASE\spring-boot-actuator-autoconfigure-2.2.6.RELEASE.jar;D:\repository\org\springframework\boot\spring-boot-actuator\2.2.6.RELEASE\spring-boot-actuator-2.2.6.RELEASE.jar;D:\repository\io\micrometer\micrometer-core\1.3.6\micrometer-core-1.3.6.jar;D:\repository\org\hdrhistogram\HdrHistogram\2.1.11\HdrHistogram-2.1.11.jar;D:\repository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;D:\repository\org\springframework\boot\spring-boot-autoconfigure\2.2.6.RELEASE\spring-boot-autoconfigure-2.2.6.RELEASE.jar;D:\repository\org\springframework\boot\spring-boot\2.2.6.RELEASE\spring-boot-2.2.6.RELEASE.jar;D:\repository\org\springframework\cloud\spring-cloud-context\2.2.9.RELEASE\spring-cloud-context-2.2.9.RELEASE.jar;D:\repository\org\yaml\snakeyaml\1.25\snakeyaml-1.25.jar;D:\repository\com\ucloud\ucloud-starter-core\1.0.0-SNAPSHOT\ucloud-starter-core-1.0.0-20221020.030347-28.jar;D:\repository\commons-beanutils\commons-beanutils\1.9.3\commons-beanutils-1.9.3.jar;D:\repository\commons-codec\commons-codec\1.11\commons-codec-1.11.jar;D:\repository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;D:\repository\org\apache\commons\commons-lang3\3.8\commons-lang3-3.8.jar;D:\repository\commons-io\commons-io\2.6\commons-io-2.6.jar;D:\repository\commons-httpclient\commons-httpclient\3.0.1\commons-httpclient-3.0.1.jar;D:\repository\com\alibaba\fastjson\1.2.69\fastjson-1.2.69.jar;D:\repository\com\fasterxml\jackson\core\jackson-core\2.10.1\jackson-core-2.10.1.jar;D:\repository\com\fasterxml\jackson\core\jackson-databind\2.10.1\jackson-databind-2.10.1.jar;D:\repository\com\fasterxml\jackson\core\jackson-annotations\2.10.1\jackson-annotations-2.10.1.jar;D:\repository\org\projectlombok\lombok\1.18.10\lombok-1.18.10.jar;D:\repository\com\auth0\java-jwt\2.3.0\java-jwt-2.3.0.jar;D:\repository\org\apache\logging\log4j\log4j-core\2.16.0\log4j-core-2.16.0.jar;D:\repository\org\apache\logging\log4j\log4j-api\2.16.0\log4j-api-2.16.0.jar;D:\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;D:\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\repository\com\ucloud\ucloud-starter-log\1.0.0-SNAPSHOT\ucloud-starter-log-1.0.0-20220505.054147-11.jar;D:\repository\com\ucloud\ucloud-starter-nats\1.0.0-SNAPSHOT\ucloud-starter-nats-1.0.0-20221114.092930-16.jar;D:\repository\io\nats\jnats\2.6.0\jnats-2.6.0.jar;D:\repository\net\i2p\crypto\eddsa\0.3.0\eddsa-0.3.0.jar;D:\repository\org\springframework\security\spring-security-crypto\5.2.2.RELEASE\spring-security-crypto-5.2.2.RELEASE.jar;D:\repository\org\springframework\boot\spring-boot-starter-data-redis\2.2.6.RELEASE\spring-boot-starter-data-redis-2.2.6.RELEASE.jar;D:\repository\org\springframework\data\spring-data-redis\2.2.6.RELEASE\spring-data-redis-2.2.6.RELEASE.jar;D:\repository\org\springframework\data\spring-data-keyvalue\2.2.6.RELEASE\spring-data-keyvalue-2.2.6.RELEASE.jar;D:\repository\org\springframework\spring-oxm\5.2.5.RELEASE\spring-oxm-5.2.5.RELEASE.jar;D:\repository\org\springframework\spring-context-support\5.2.5.RELEASE\spring-context-support-5.2.5.RELEASE.jar;D:\repository\io\lettuce\lettuce-core\5.2.2.RELEASE\lettuce-core-5.2.2.RELEASE.jar;D:\repository\io\netty\netty-common\4.1.48.Final\netty-common-4.1.48.Final.jar;D:\repository\io\netty\netty-handler\4.1.48.Final\netty-handler-4.1.48.Final.jar;D:\repository\io\netty\netty-resolver\4.1.48.Final\netty-resolver-4.1.48.Final.jar;D:\repository\io\netty\netty-buffer\4.1.48.Final\netty-buffer-4.1.48.Final.jar;D:\repository\io\netty\netty-codec\4.1.48.Final\netty-codec-4.1.48.Final.jar;D:\repository\io\netty\netty-transport\4.1.48.Final\netty-transport-4.1.48.Final.jar;D:\repository\io\projectreactor\reactor-core\3.3.4.RELEASE\reactor-core-3.3.4.RELEASE.jar;D:\repository\org\reactivestreams\reactive-streams\1.0.2\reactive-streams-1.0.2.jar;D:\repository\com\google\guava\guava\29.0-jre\guava-29.0-jre.jar;D:\repository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;D:\repository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;D:\repository\org\checkerframework\checker-qual\2.11.1\checker-qual-2.11.1.jar;D:\repository\com\google\errorprone\error_prone_annotations\2.3.4\error_prone_annotations-2.3.4.jar;D:\repository\com\google\j2objc\j2objc-annotations\1.3\j2objc-annotations-1.3.jar;D:\repository\com\alicp\jetcache\jetcache-starter-redis-springdata\2.6.0\jetcache-starter-redis-springdata-2.6.0.jar;D:\repository\com\alicp\jetcache\jetcache-autoconfigure\2.6.0\jetcache-autoconfigure-2.6.0.jar;D:\repository\com\alicp\jetcache\jetcache-anno\2.6.0\jetcache-anno-2.6.0.jar;D:\repository\com\alicp\jetcache\jetcache-core\2.6.0\jetcache-core-2.6.0.jar;D:\repository\com\alicp\jetcache\jetcache-anno-api\2.6.0\jetcache-anno-api-2.6.0.jar;D:\repository\com\github\ben-manes\caffeine\caffeine\2.8.0\caffeine-2.8.0.jar;D:\repository\org\mvel\mvel2\2.4.7.Final\mvel2-2.4.7.Final.jar;D:\repository\com\esotericsoftware\kryo\4.0.2\kryo-4.0.2.jar;D:\repository\com\esotericsoftware\reflectasm\1.11.3\reflectasm-1.11.3.jar;D:\repository\com\esotericsoftware\minlog\1.3.0\minlog-1.3.0.jar;D:\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;D:\repository\com\alicp\jetcache\jetcache-redis-springdata\2.6.0\jetcache-redis-springdata-2.6.0.jar;D:\repository\org\apache\commons\commons-pool2\2.4.2\commons-pool2-2.4.2.jar;D:\repository\io\github\openfeign\feign-httpclient\10.12\feign-httpclient-10.12.jar;D:\repository\io\github\openfeign\feign-core\10.12\feign-core-10.12.jar;D:\repository\org\apache\httpcomponents\httpclient\4.5.3\httpclient-4.5.3.jar;D:\repository\org\apache\httpcomponents\httpcore\4.4.12\httpcore-4.4.12.jar;D:\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;D:\repository\org\springframework\boot\spring-boot-starter\2.2.6.RELEASE\spring-boot-starter-2.2.6.RELEASE.jar;D:\repository\org\springframework\boot\spring-boot-starter-logging\2.2.6.RELEASE\spring-boot-starter-logging-2.2.6.RELEASE.jar;D:\repository\org\apache\logging\log4j\log4j-to-slf4j\2.16.0\log4j-to-slf4j-2.16.0.jar;D:\repository\org\slf4j\jul-to-slf4j\1.7.29\jul-to-slf4j-1.7.29.jar;D:\repository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;D:\repository\jakarta\xml\bind\jakarta.xml.bind-api\2.3.3\jakarta.xml.bind-api-2.3.3.jar;D:\repository\junit\junit\4.12\junit-4.12.jar;D:\repository\org\objenesis\objenesis\2.1\objenesis-2.1.jar;D:\repository\org\springframework\spring-core\5.2.5.RELEASE\spring-core-5.2.5.RELEASE.jar;D:\repository\org\springframework\spring-jcl\5.2.5.RELEASE\spring-jcl-5.2.5.RELEASE.jar;D:\repository\com\alibaba\easyexcel\2.2.10\easyexcel-2.2.10.jar;D:\repository\org\apache\poi\poi\4.1.2\poi-4.1.2.jar;D:\repository\org\apache\commons\commons-collections4\4.4\commons-collections4-4.4.jar;D:\repository\org\apache\commons\commons-math3\3.6.1\commons-math3-3.6.1.jar;D:\repository\com\zaxxer\SparseBitSet\1.2\SparseBitSet-1.2.jar;D:\repository\org\apache\poi\poi-ooxml\4.1.2\poi-ooxml-4.1.2.jar;D:\repository\org\apache\commons\commons-compress\1.19\commons-compress-1.19.jar;D:\repository\com\github\virtuald\curvesapi\1.06\curvesapi-1.06.jar;D:\repository\org\apache\poi\poi-ooxml-schemas\4.1.2\poi-ooxml-schemas-4.1.2.jar;D:\repository\org\apache\xmlbeans\xmlbeans\3.1.0\xmlbeans-3.1.0.jar;D:\repository\cglib\cglib\3.1\cglib-3.1.jar;D:\repository\org\ow2\asm\asm\4.2\asm-4.2.jar;D:\repository\org\slf4j\slf4j-api\1.7.29\slf4j-api-1.7.29.jar;D:\repository\org\ehcache\ehcache\3.8.1\ehcache-3.8.1.jar;D:\repository\org\glassfish\jaxb\jaxb-runtime\2.3.2\jaxb-runtime-2.3.2.jar;D:\repository\org\glassfish\jaxb\txw2\2.3.2\txw2-2.3.2.jar;D:\repository\com\sun\istack\istack-commons-runtime\3.0.8\istack-commons-runtime-3.0.8.jar;D:\repository\org\jvnet\staxex\stax-ex\1.8.1\stax-ex-1.8.1.jar;D:\repository\com\sun\xml\fastinfoset\FastInfoset\1.2.16\FastInfoset-1.2.16.jar;D:\repository\com\ucloud\ucloud-bizcomp-fileservice\1.0.0-SNAPSHOT\ucloud-bizcomp-fileservice-1.0.0-20221121.062027-32.jar;D:\repository\com\ucloud\ucloud-bizcomp-ucstar\1.0.0-SNAPSHOT\ucloud-bizcomp-ucstar-1.0.0-20220805.101302-32.jar;D:\repository\qflag\ucstar\uc-grpc-protobuf\1.0.0-SNAPSHOT\uc-grpc-protobuf-1.0.0-20220408.064944-18.jar;D:\repository\io\grpc\grpc-all\1.27.0\grpc-all-1.27.0.jar;D:\repository\io\grpc\grpc-api\1.34.1\grpc-api-1.34.1.jar;D:\repository\org\codehaus\mojo\animal-sniffer-annotations\1.18\animal-sniffer-annotations-1.18.jar;D:\repository\io\grpc\grpc-auth\1.34.1\grpc-auth-1.34.1.jar;D:\repository\com\google\auth\google-auth-library-credentials\0.22.1\google-auth-library-credentials-0.22.1.jar;D:\repository\io\grpc\grpc-core\1.34.1\grpc-core-1.34.1.jar;D:\repository\com\google\android\annotations\4.1.1.4\annotations-4.1.1.4.jar;D:\repository\io\perfmark\perfmark-api\0.19.0\perfmark-api-0.19.0.jar;D:\repository\io\grpc\grpc-context\1.34.1\grpc-context-1.34.1.jar;D:\repository\io\grpc\grpc-netty\1.34.1\grpc-netty-1.34.1.jar;D:\repository\io\netty\netty-codec-http2\4.1.48.Final\netty-codec-http2-4.1.48.Final.jar;D:\repository\io\netty\netty-codec-http\4.1.48.Final\netty-codec-http-4.1.48.Final.jar;D:\repository\io\netty\netty-handler-proxy\4.1.48.Final\netty-handler-proxy-4.1.48.Final.jar;D:\repository\io\netty\netty-codec-socks\4.1.48.Final\netty-codec-socks-4.1.48.Final.jar;D:\repository\io\grpc\grpc-okhttp\1.34.1\grpc-okhttp-1.34.1.jar;D:\repository\com\squareup\okhttp\okhttp\2.7.4\okhttp-2.7.4.jar;D:\repository\com\squareup\okio\okio\1.13.0\okio-1.13.0.jar;D:\repository\io\grpc\grpc-protobuf\1.34.1\grpc-protobuf-1.34.1.jar;D:\repository\com\google\protobuf\protobuf-java\3.14.0\protobuf-java-3.14.0.jar;D:\repository\com\google\api\grpc\proto-google-common-protos\2.0.1\proto-google-common-protos-2.0.1.jar;D:\repository\io\grpc\grpc-protobuf-lite\1.34.1\grpc-protobuf-lite-1.34.1.jar;D:\repository\io\grpc\grpc-stub\1.34.1\grpc-stub-1.34.1.jar;D:\repository\io\grpc\grpc-testing\1.34.1\grpc-testing-1.34.1.jar;D:\repository\io\opencensus\opencensus-api\0.24.0\opencensus-api-0.24.0.jar;D:\repository\qflag\ucstar\uc-grpc-servicesdk\1.0.0-SNAPSHOT\uc-grpc-servicesdk-1.0.0-20220408.064948-25.jar;D:\repository\com\ucstar\sdk\uc-server-sdk\1.0.0-SNAPSHOT\uc-server-sdk-1.0.0-20221010.073920-61.jar;D:\repository\com\rabbitmq\amqp-client\5.7.3\amqp-client-5.7.3.jar;D:\repository\org\springframework\spring-test\5.2.5.RELEASE\spring-test-5.2.5.RELEASE.jar;D:\repository\com\baomidou\mybatis-plus-boot-starter\3.1.2\mybatis-plus-boot-starter-3.1.2.jar;D:\repository\com\baomidou\mybatis-plus\3.4.1\mybatis-plus-3.4.1.jar;D:\repository\com\baomidou\mybatis-plus-extension\3.4.1\mybatis-plus-extension-3.4.1.jar;D:\repository\com\baomidou\mybatis-plus-core\3.4.1\mybatis-plus-core-3.4.1.jar;D:\repository\com\baomidou\mybatis-plus-annotation\3.4.1\mybatis-plus-annotation-3.4.1.jar;D:\repository\org\mybatis\mybatis\3.5.6\mybatis-3.5.6.jar;D:\repository\org\mybatis\mybatis-spring\2.0.5\mybatis-spring-2.0.5.jar;D:\repository\com\sun\mail\javax.mail\1.6.0\javax.mail-1.6.0.jar;D:\repository\javax\activation\activation\1.1\activation-1.1.jar;D:\repository\cn\hutool\hutool-all\5.8.10\hutool-all-5.8.10.jar" com.ucloud.provider.zhaogong.controller.DesensitizedUtilTest
2022-11-30 11:15:08.785 - INFO - [c.u.p.z.controller.DesensitizedUtilTest].main : idCardNum:5***************1X
2022-11-30 11:15:08.793 - INFO - [c.u.p.z.controller.DesensitizedUtilTest].main : mobilePhone:180****1999
2022-11-30 11:15:08.794 - INFO - [c.u.p.z.controller.DesensitizedUtilTest].main : password:**********

Process finished with exit code 0

你可能感兴趣的:(java,java,开发语言)