单例模式应用:单例模式只有一个实例,如果我创建多个实例,都最后只取最后一个,下面是代码和结果

阅读 82

2022-09-20


单例模式应用:单例模式只有一个实例,如果我创建多个实例,都最后只取最后一个,下面是代码和结果

import cn.hutool.log.Log;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.springframework.boot.autoconfigure.web.reactive.WebFluxAutoConfiguration;

import java.text.SimpleDateFormat;
import java.time.temporal.ValueRange;
import java.util.*;
import java.util.stream.Collectors;

/**
* @author: samxie
* @create: 2022/5/27
* @Description:
* @FileName: SingletonNewTest
* @History:
* @自定义内容:一个实例对象,指的是一个程序运行期间,
* 某个类最多只可以创建一个对象---单例模式
*/
@Slf4j
public class SingletonNewTest {
// @Test
// public void test() {
// //这种就是单例模式饿汉式的(那个人很饿,只要有东西可以就去吃),线程安全 先创建对象
// Student student = Student.getInstance();
// Student student1 = Student.getInstance();
// System.out.println(student1 == student);
// //true
// }
//
// //懒汉先不创建对象
// @Test
// public void test1() {
// //这种就是单例模式懒汉的普通,线程不安全
// Student1 student = Student1.getInstance();
// Student1 student1 = Student1.getInstance();
// System.out.println("===" + (student1 == student));
// //true
//
// }
//
// //懒汉先不创建对象
// @Test
// public void test2() {
// //这种就是单例模式懒汉的升级,线程不安全
// LazyDoubleCheckSingleton student = LazyDoubleCheckSingleton.getInstance();
// LazyDoubleCheckSingleton student1 = LazyDoubleCheckSingleton.getInstance();
// System.out.println("===!!!!" + (student1 == student));
// //true
// }

@Test
public void test3() {
//application
Student1 student = Student1.getInstance();
student.setAddress("上海");
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd:HH:mm:ss");
String format = simpleDateFormat.format(System.currentTimeMillis());
log.info(format); //2022-10-29:00:11:16
student.setGmtCreate(format);
student.setId(this.getUUID32());
student.setBackInfo("hello");
student.setName("liha2");
log.debug("==============student:{}", student);

Student1 student2 = Student1.getInstance();
student2.setAddress("上海");
log.info(format); //2022-10-29:00:11:16
student2.setGmtCreate(format);
student2.setId(this.getUUID32());
student2.setBackInfo("hello");
student2.setName("liha3");
log.debug("==============student2:{}", student2);


Student1 student3 = Student1.getInstance();
student3.setAddress("上海");
log.info(format); //2022-10-29:00:11:16
student3.setGmtCreate(format);
student3.setId(this.getUUID32());
student3.setBackInfo("hello");
student3.setName("liha32");
log.debug("==============student3:{}", student3);

Student1 student4 = Student1.getInstance();
student4.setAddress("上海");
log.info(format); //2022-10-29:00:11:16
student4.setGmtCreate(format);
student4.setId(this.getUUID32());
student4.setBackInfo("hello");
student4.setName("liha3333333");
log.debug("==============student4:{}", student4);

List<Student1> set = new ArrayList<>();
set.add(student);
set.add(student2);
set.add(student3);
set.add(student4);
log.info("===========set:{}", set);
Map<String, Student1> collect = set.stream().collect(Collectors.toMap(Student1::getId, t -> t));
log.info("===collect:{}", collect);
Set<Student1> collect1 = set.stream().filter(t -> "liha" != t.getName()).collect(Collectors.toSet());
log.info("======collect1:{}", collect1);
}
public static String getUUID32() {
return UUID.randomUUID().toString().replace("-", "").toLowerCase();
}
}


@Data
class Student1 {
private String id;
private String name;
private Integer sex;
private String className;
private String backInfo;
private String address;
private String gmtCreate;

private Student1() {

}

//没有new对象
private static Student1 stu;

public static synchronized Student1 getInstance() {
if (stu == null) {
stu = new Student1();
}
return stu;
}
}

//class Student {
// private Student() {
//
// }
//
// //先创建对象
// private static Student stu = new Student();
//
// public static Student getInstance() {
// return stu;
// }
//}
//
//
//
// class LazyDoubleCheckSingleton {
// private LazyDoubleCheckSingleton() {
//
// }
// private volatile static LazyDoubleCheckSingleton a;
//
// //直接使用new就不能实现好的设计,这时候需要使用间接使用new, getInstance也是创建对象一种方法
// //getInstance在主函数开始时调用,返回一个实例化对象,此对象是static
// public static LazyDoubleCheckSingleton getInstance() {
// if (null == a) {
// synchronized (LazyDoubleCheckSingleton.class) {
// if (null == a) {
// a = new LazyDoubleCheckSingleton();
// }
// }
// }
// return a;
// }
// }

结果:

"C:\Program Files\Java\jdk1.8.0_131\bin\java.exe" -ea -Didea.test.cyclic.buffer.size=1048576 -javaagent:E:\ideaIC-2022.1.1.win\lib\idea_rt.jar=54786:E:\ideaIC-2022.1.1.win\bin -Dfile.encoding=UTF-8 -classpath "E:\ideaIC-2022.1.1.win\lib\idea_rt.jar;E:\ideaIC-2022.1.1.win\plugins\junit\lib\junit5-rt.jar;E:\ideaIC-2022.1.1.win\plugins\junit\lib\junit-rt.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\rt.jar;D:\code\saas-report\saas-report-server\target\test-classes;D:\code\saas-report\saas-report-server\target\classes;D:\apache-maven-3.6.1\repository\com\szshuwei\fuxiplus\fuxi-plus-model-api\1.0.3-SNAPSHOT\fuxi-plus-model-api-1.0.3-20220523.131800-39.jar;D:\apache-maven-3.6.1\repository\com\szshuwei\fuxiplus\fuxi-plus-bgm-editor-annotation\1.0.3-SNAPSHOT\fuxi-plus-bgm-editor-annotation-1.0.3-20220523.131748-9.jar;D:\apache-maven-3.6.1\repository\com\alibaba\fastjson\1.2.68\fastjson-1.2.68.jar;D:\apache-maven-3.6.1\repository\com\szshuwei\fuxiplus\fuxi-plus-common-core\1.0.3\fuxi-plus-common-core-1.0.3.jar;D:\apache-maven-3.6.1\repository\com\baomidou\mybatis-plus-extension\3.4.2\mybatis-plus-extension-3.4.2.jar;D:\apache-maven-3.6.1\repository\com\baomidou\mybatis-plus-core\3.4.2\mybatis-plus-core-3.4.2.jar;D:\apache-maven-3.6.1\repository\com\baomidou\mybatis-plus-annotation\3.4.2\mybatis-plus-annotation-3.4.2.jar;D:\apache-maven-3.6.1\repository\com\github\jsqlparser\jsqlparser\4.0\jsqlparser-4.0.jar;D:\apache-maven-3.6.1\repository\org\mybatis\mybatis\3.5.6\mybatis-3.5.6.jar;D:\apache-maven-3.6.1\repository\org\mybatis\mybatis-spring\2.0.5\mybatis-spring-2.0.5.jar;D:\apache-maven-3.6.1\repository\cn\hutool\hutool-all\5.6.5\hutool-all-5.6.5.jar;D:\apache-maven-3.6.1\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.10.3\jackson-datatype-jsr310-2.10.3.jar;D:\apache-maven-3.6.1\repository\com\github\xiaoymin\knife4j-spring-boot-starter\2.0.3\knife4j-spring-boot-starter-2.0.3.jar;D:\apache-maven-3.6.1\repository\com\github\xiaoymin\knife4j-spring-boot-autoconfigure\2.0.3\knife4j-spring-boot-autoconfigure-2.0.3.jar;D:\apache-maven-3.6.1\repository\com\github\xiaoymin\knife4j-spring\2.0.3\knife4j-spring-2.0.3.jar;D:\apache-maven-3.6.1\repository\com\github\xiaoymin\knife4j-annotations\2.0.3\knife4j-annotations-2.0.3.jar;D:\apache-maven-3.6.1\repository\com\github\xiaoymin\knife4j-core\2.0.3\knife4j-core-2.0.3.jar;D:\apache-maven-3.6.1\repository\io\springfox\springfox-bean-validators\2.9.2\springfox-bean-validators-2.9.2.jar;D:\apache-maven-3.6.1\repository\com\github\xiaoymin\knife4j-spring-ui\2.0.3\knife4j-spring-ui-2.0.3.jar;D:\apache-maven-3.6.1\repository\org\springframework\cloud\spring-cloud-starter-openfeign\2.2.2.RELEASE\spring-cloud-starter-openfeign-2.2.2.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\cloud\spring-cloud-starter\2.2.2.RELEASE\spring-cloud-starter-2.2.2.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\security\spring-security-rsa\1.0.9.RELEASE\spring-security-rsa-1.0.9.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\bouncycastle\bcpkix-jdk15on\1.64\bcpkix-jdk15on-1.64.jar;D:\apache-maven-3.6.1\repository\org\springframework\spring-web\5.2.5.RELEASE\spring-web-5.2.5.RELEASE.jar;D:\apache-maven-3.6.1\repository\io\github\openfeign\feign-core\10.7.4\feign-core-10.7.4.jar;D:\apache-maven-3.6.1\repository\io\github\openfeign\feign-slf4j\10.7.4\feign-slf4j-10.7.4.jar;D:\apache-maven-3.6.1\repository\io\github\openfeign\feign-hystrix\10.7.4\feign-hystrix-10.7.4.jar;D:\apache-maven-3.6.1\repository\com\netflix\archaius\archaius-core\0.7.6\archaius-core-0.7.6.jar;D:\apache-maven-3.6.1\repository\com\netflix\hystrix\hystrix-core\1.5.18\hystrix-core-1.5.18.jar;D:\apache-maven-3.6.1\repository\com\szshuwei\fuxiplus\fuxi-plus-city-api\1.0.0-SNAPSHOT\fuxi-plus-city-api-1.0.0-20220511.080700-32.jar;D:\apache-maven-3.6.1\repository\com\szshuwei\fuxiplus\fuxi-plus-waimai-api\1.0.0-SNAPSHOT\fuxi-plus-waimai-api-1.0.0-20220327.103551-22.jar;D:\code\saas-report\saas-report-api\target\classes;D:\apache-maven-3.6.1\repository\com\shuwei\lego\lego-common-core\1.0.12\lego-common-core-1.0.12.jar;D:\apache-maven-3.6.1\repository\com\shuwei\lego\lego-common-verify\1.0.0\lego-common-verify-1.0.0.jar;D:\apache-maven-3.6.1\repository\com\github\ulisesbocchio\jasypt-spring-boot-starter\2.1.0\jasypt-spring-boot-starter-2.1.0.jar;D:\apache-maven-3.6.1\repository\com\github\ulisesbocchio\jasypt-spring-boot\2.1.0\jasypt-spring-boot-2.1.0.jar;D:\apache-maven-3.6.1\repository\org\jasypt\jasypt\1.9.2\jasypt-1.9.2.jar;D:\apache-maven-3.6.1\repository\javax\servlet\javax.servlet-api\4.0.1\javax.servlet-api-4.0.1.jar;D:\apache-maven-3.6.1\repository\io\github\openfeign\feign-okhttp\10.7.4\feign-okhttp-10.7.4.jar;D:\apache-maven-3.6.1\repository\com\squareup\okhttp3\okhttp\3.14.7\okhttp-3.14.7.jar;D:\apache-maven-3.6.1\repository\com\squareup\okio\okio\1.17.2\okio-1.17.2.jar;D:\apache-maven-3.6.1\repository\org\springframework\cloud\spring-cloud-starter-netflix-hystrix\2.2.2.RELEASE\spring-cloud-starter-netflix-hystrix-2.2.2.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\cloud\spring-cloud-netflix-hystrix\2.2.2.RELEASE\spring-cloud-netflix-hystrix-2.2.2.RELEASE.jar;D:\apache-maven-3.6.1\repository\com\netflix\hystrix\hystrix-serialization\1.5.18\hystrix-serialization-1.5.18.jar;D:\apache-maven-3.6.1\repository\com\fasterxml\jackson\module\jackson-module-afterburner\2.10.3\jackson-module-afterburner-2.10.3.jar;D:\apache-maven-3.6.1\repository\com\netflix\hystrix\hystrix-metrics-event-stream\1.5.18\hystrix-metrics-event-stream-1.5.18.jar;D:\apache-maven-3.6.1\repository\com\netflix\hystrix\hystrix-javanica\1.5.18\hystrix-javanica-1.5.18.jar;D:\apache-maven-3.6.1\repository\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;D:\apache-maven-3.6.1\repository\io\reactivex\rxjava-reactive-streams\1.2.1\rxjava-reactive-streams-1.2.1.jar;D:\apache-maven-3.6.1\repository\org\reactivestreams\reactive-streams\1.0.3\reactive-streams-1.0.3.jar;D:\apache-maven-3.6.1\repository\org\springframework\boot\spring-boot-starter-validation\2.2.6.RELEASE\spring-boot-starter-validation-2.2.6.RELEASE.jar;D:\apache-maven-3.6.1\repository\jakarta\validation\jakarta.validation-api\2.0.2\jakarta.validation-api-2.0.2.jar;D:\apache-maven-3.6.1\repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.33\tomcat-embed-el-9.0.33.jar;D:\apache-maven-3.6.1\repository\org\hibernate\validator\hibernate-validator\6.0.18.Final\hibernate-validator-6.0.18.Final.jar;D:\apache-maven-3.6.1\repository\org\springframework\boot\spring-boot-starter-json\2.2.6.RELEASE\spring-boot-starter-json-2.2.6.RELEASE.jar;D:\apache-maven-3.6.1\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.10.3\jackson-datatype-jdk8-2.10.3.jar;D:\apache-maven-3.6.1\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.10.3\jackson-module-parameter-names-2.10.3.jar;D:\apache-maven-3.6.1\repository\io\swagger\swagger-annotations\1.5.24\swagger-annotations-1.5.24.jar;D:\apache-maven-3.6.1\repository\com\dyuproject\protostuff\protostuff-core\1.1.3\protostuff-core-1.1.3.jar;D:\apache-maven-3.6.1\repository\com\dyuproject\protostuff\protostuff-api\1.1.3\protostuff-api-1.1.3.jar;D:\apache-maven-3.6.1\repository\com\dyuproject\protostuff\protostuff-runtime\1.1.3\protostuff-runtime-1.1.3.jar;D:\apache-maven-3.6.1\repository\com\dyuproject\protostuff\protostuff-collectionschema\1.1.3\protostuff-collectionschema-1.1.3.jar;D:\apache-maven-3.6.1\repository\org\apache\skywalking\apm-toolkit-trace\8.0.1\apm-toolkit-trace-8.0.1.jar;D:\apache-maven-3.6.1\repository\com\shuwei\lego\saas-brand-api\1.0.0-SNAPSHOT\saas-brand-api-1.0.0-20220330.090636-58.jar;D:\apache-maven-3.6.1\repository\com\shuwei\lego\lego-merchant-api\1.0.6-SNAPSHOT\lego-merchant-api-1.0.6-SNAPSHOT.jar;D:\apache-maven-3.6.1\repository\com\szshuwei\fuxiplus\fuxi-plus-shopmall-api\1.0.1-SNAPSHOT\fuxi-plus-shopmall-api-1.0.1-20220518.080135-55.jar;D:\apache-maven-3.6.1\repository\com\szshuwei\fuxiplus\fuxi-plus-common-swagger\1.0.1\fuxi-plus-common-swagger-1.0.1.jar;D:\apache-maven-3.6.1\repository\org\springframework\boot\spring-boot\2.2.6.RELEASE\spring-boot-2.2.6.RELEASE.jar;D:\apache-maven-3.6.1\repository\com\szshuwei\fuxiplus\fuxi-plus-poi-api\1.0.1-SNAPSHOT\fuxi-plus-poi-api-1.0.1-20220331.134029-22.jar;D:\apache-maven-3.6.1\repository\com\szshuwei\fuxiplus\fuxi-plus-brand-api\1.0.2-SNAPSHOT\fuxi-plus-brand-api-1.0.2-20220429.081032-6.jar;D:\apache-maven-3.6.1\repository\com\shuwei\lego\saas-collect-api\1.0.2-SNAPSHOT\saas-collect-api-1.0.2-SNAPSHOT.jar;D:\apache-maven-3.6.1\repository\com\shuwei\lego\saas-message-server\1.0.0-SNAPSHOT\saas-message-server-1.0.0-SNAPSHOT.jar;D:\apache-maven-3.6.1\repository\org\apache\commons\commons-text\1.6\commons-text-1.6.jar;D:\apache-maven-3.6.1\repository\com\shuwei\lego\saas-message-api\1.0.0-SNAPSHOT\saas-message-api-1.0.0-SNAPSHOT.jar;D:\apache-maven-3.6.1\repository\org\apache\httpcomponents\httpclient\4.5.12\httpclient-4.5.12.jar;D:\apache-maven-3.6.1\repository\commons-codec\commons-codec\1.13\commons-codec-1.13.jar;D:\apache-maven-3.6.1\repository\com\shuwei\lego\lego-common-mybatis\1.0.4\lego-common-mybatis-1.0.4.jar;D:\apache-maven-3.6.1\repository\com\baomidou\mybatis-plus-boot-starter\3.3.1\mybatis-plus-boot-starter-3.3.1.jar;D:\apache-maven-3.6.1\repository\com\baomidou\mybatis-plus\3.3.1\mybatis-plus-3.3.1.jar;D:\apache-maven-3.6.1\repository\org\springframework\boot\spring-boot-starter-jdbc\2.2.6.RELEASE\spring-boot-starter-jdbc-2.2.6.RELEASE.jar;D:\apache-maven-3.6.1\repository\com\zaxxer\HikariCP\3.4.2\HikariCP-3.4.2.jar;D:\apache-maven-3.6.1\repository\org\springframework\spring-jdbc\5.2.5.RELEASE\spring-jdbc-5.2.5.RELEASE.jar;D:\apache-maven-3.6.1\repository\mysql\mysql-connector-java\8.0.19\mysql-connector-java-8.0.19.jar;D:\apache-maven-3.6.1\repository\com\aliyun\aliyun-java-sdk-core\4.6.0\aliyun-java-sdk-core-4.6.0.jar;D:\apache-maven-3.6.1\repository\com\google\code\gson\gson\2.8.6\gson-2.8.6.jar;D:\apache-maven-3.6.1\repository\org\apache\httpcomponents\httpcore\4.4.13\httpcore-4.4.13.jar;D:\apache-maven-3.6.1\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;D:\apache-maven-3.6.1\repository\org\apache\commons\commons-lang3\3.9\commons-lang3-3.9.jar;D:\apache-maven-3.6.1\repository\javax\xml\bind\jaxb-api\2.3.1\jaxb-api-2.3.1.jar;D:\apache-maven-3.6.1\repository\javax\activation\javax.activation-api\1.2.0\javax.activation-api-1.2.0.jar;D:\apache-maven-3.6.1\repository\org\glassfish\jaxb\jaxb-runtime\2.3.2\jaxb-runtime-2.3.2.jar;D:\apache-maven-3.6.1\repository\org\glassfish\jaxb\txw2\2.3.2\txw2-2.3.2.jar;D:\apache-maven-3.6.1\repository\com\sun\istack\istack-commons-runtime\3.0.8\istack-commons-runtime-3.0.8.jar;D:\apache-maven-3.6.1\repository\org\jvnet\staxex\stax-ex\1.8.1\stax-ex-1.8.1.jar;D:\apache-maven-3.6.1\repository\com\sun\xml\fastinfoset\FastInfoset\1.2.16\FastInfoset-1.2.16.jar;D:\apache-maven-3.6.1\repository\jakarta\activation\jakarta.activation-api\1.2.2\jakarta.activation-api-1.2.2.jar;D:\apache-maven-3.6.1\repository\org\bouncycastle\bcprov-jdk15on\1.70\bcprov-jdk15on-1.70.jar;D:\apache-maven-3.6.1\repository\org\jacoco\org.jacoco.agent\0.8.7\org.jacoco.agent-0.8.7-runtime.jar;D:\apache-maven-3.6.1\repository\org\ini4j\ini4j\0.5.4\ini4j-0.5.4.jar;D:\apache-maven-3.6.1\repository\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar;D:\apache-maven-3.6.1\repository\io\opentracing\opentracing-api\0.33.0\opentracing-api-0.33.0.jar;D:\apache-maven-3.6.1\repository\io\opentracing\opentracing-util\0.33.0\opentracing-util-0.33.0.jar;D:\apache-maven-3.6.1\repository\io\opentracing\opentracing-noop\0.33.0\opentracing-noop-0.33.0.jar;D:\apache-maven-3.6.1\repository\com\shuwei\lego\lego-common-upload\1.0.5\lego-common-upload-1.0.5.jar;D:\apache-maven-3.6.1\repository\com\aliyun\oss\aliyun-sdk-oss\3.5.0\aliyun-sdk-oss-3.5.0.jar;D:\apache-maven-3.6.1\repository\org\jdom\jdom\1.1\jdom-1.1.jar;D:\apache-maven-3.6.1\repository\org\codehaus\jettison\jettison\1.1\jettison-1.1.jar;D:\apache-maven-3.6.1\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;D:\apache-maven-3.6.1\repository\com\aliyun\aliyun-java-sdk-ram\3.0.0\aliyun-java-sdk-ram-3.0.0.jar;D:\apache-maven-3.6.1\repository\com\aliyun\aliyun-java-sdk-sts\3.0.0\aliyun-java-sdk-sts-3.0.0.jar;D:\apache-maven-3.6.1\repository\com\aliyun\aliyun-java-sdk-ecs\4.2.0\aliyun-java-sdk-ecs-4.2.0.jar;D:\apache-maven-3.6.1\repository\com\shuwei\lego\lego-common-swagger\1.1.1\lego-common-swagger-1.1.1.jar;D:\apache-maven-3.6.1\repository\io\springfox\springfox-swagger2\2.9.2\springfox-swagger2-2.9.2.jar;D:\apache-maven-3.6.1\repository\io\swagger\swagger-models\1.5.24\swagger-models-1.5.24.jar;D:\apache-maven-3.6.1\repository\io\springfox\springfox-spi\2.9.2\springfox-spi-2.9.2.jar;D:\apache-maven-3.6.1\repository\io\springfox\springfox-core\2.9.2\springfox-core-2.9.2.jar;D:\apache-maven-3.6.1\repository\io\springfox\springfox-schema\2.9.2\springfox-schema-2.9.2.jar;D:\apache-maven-3.6.1\repository\io\springfox\springfox-swagger-common\2.9.2\springfox-swagger-common-2.9.2.jar;D:\apache-maven-3.6.1\repository\io\springfox\springfox-spring-web\2.9.2\springfox-spring-web-2.9.2.jar;D:\apache-maven-3.6.1\repository\com\google\guava\guava\28.2-android\guava-28.2-android.jar;D:\apache-maven-3.6.1\repository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;D:\apache-maven-3.6.1\repository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:\apache-maven-3.6.1\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;D:\apache-maven-3.6.1\repository\org\checkerframework\checker-compat-qual\2.5.5\checker-compat-qual-2.5.5.jar;D:\apache-maven-3.6.1\repository\com\google\j2objc\j2objc-annotations\1.3\j2objc-annotations-1.3.jar;D:\apache-maven-3.6.1\repository\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;D:\apache-maven-3.6.1\repository\org\springframework\plugin\spring-plugin-core\1.2.0.RELEASE\spring-plugin-core-1.2.0.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\plugin\spring-plugin-metadata\1.2.0.RELEASE\spring-plugin-metadata-1.2.0.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\mapstruct\mapstruct\1.2.0.Final\mapstruct-1.2.0.Final.jar;D:\apache-maven-3.6.1\repository\io\springfox\springfox-swagger-ui\2.9.2\springfox-swagger-ui-2.9.2.jar;D:\apache-maven-3.6.1\repository\com\github\xiaoymin\knife4j-micro-spring-boot-starter\2.0.3\knife4j-micro-spring-boot-starter-2.0.3.jar;D:\apache-maven-3.6.1\repository\org\springframework\boot\spring-boot-starter-web\2.2.6.RELEASE\spring-boot-starter-web-2.2.6.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\spring-webmvc\5.2.5.RELEASE\spring-webmvc-5.2.5.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\spring-expression\5.2.5.RELEASE\spring-expression-5.2.5.RELEASE.jar;D:\apache-maven-3.6.1\repository\com\github\xiaoymin\swagger-bootstrap-ui\1.9.4\swagger-bootstrap-ui-1.9.4.jar;D:\apache-maven-3.6.1\repository\org\javassist\javassist\3.25.0-GA\javassist-3.25.0-GA.jar;D:\apache-maven-3.6.1\repository\com\shuwei\lego\lego-common-cache\1.0.4\lego-common-cache-1.0.4.jar;D:\apache-maven-3.6.1\repository\org\springframework\boot\spring-boot-starter-integration\2.2.6.RELEASE\spring-boot-starter-integration-2.2.6.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\integration\spring-integration-core\5.2.5.RELEASE\spring-integration-core-5.2.5.RELEASE.jar;D:\apache-maven-3.6.1\repository\io\projectreactor\reactor-core\3.3.4.RELEASE\reactor-core-3.3.4.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\retry\spring-retry\1.2.5.RELEASE\spring-retry-1.2.5.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\spring-messaging\5.2.5.RELEASE\spring-messaging-5.2.5.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\spring-tx\5.2.5.RELEASE\spring-tx-5.2.5.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\integration\spring-integration-redis\5.2.6.RELEASE\spring-integration-redis-5.2.6.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\data\spring-data-redis\2.2.6.RELEASE\spring-data-redis-2.2.6.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\data\spring-data-keyvalue\2.2.6.RELEASE\spring-data-keyvalue-2.2.6.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\data\spring-data-commons\2.2.6.RELEASE\spring-data-commons-2.2.6.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\spring-context-support\5.2.5.RELEASE\spring-context-support-5.2.5.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\spring-beans\5.2.5.RELEASE\spring-beans-5.2.5.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\spring-context\5.2.5.RELEASE\spring-context-5.2.5.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\boot\spring-boot-starter-data-redis\2.2.6.RELEASE\spring-boot-starter-data-redis-2.2.6.RELEASE.jar;D:\apache-maven-3.6.1\repository\io\lettuce\lettuce-core\5.2.2.RELEASE\lettuce-core-5.2.2.RELEASE.jar;D:\apache-maven-3.6.1\repository\io\netty\netty-common\4.1.48.Final\netty-common-4.1.48.Final.jar;D:\apache-maven-3.6.1\repository\io\netty\netty-handler\4.1.48.Final\netty-handler-4.1.48.Final.jar;D:\apache-maven-3.6.1\repository\io\netty\netty-resolver\4.1.48.Final\netty-resolver-4.1.48.Final.jar;D:\apache-maven-3.6.1\repository\io\netty\netty-buffer\4.1.48.Final\netty-buffer-4.1.48.Final.jar;D:\apache-maven-3.6.1\repository\io\netty\netty-codec\4.1.48.Final\netty-codec-4.1.48.Final.jar;D:\apache-maven-3.6.1\repository\io\netty\netty-transport\4.1.48.Final\netty-transport-4.1.48.Final.jar;D:\apache-maven-3.6.1\repository\org\apache\commons\commons-pool2\2.4.2\commons-pool2-2.4.2.jar;D:\apache-maven-3.6.1\repository\com\alibaba\cloud\spring-cloud-starter-alibaba-nacos-discovery\2.2.1.RELEASE\spring-cloud-starter-alibaba-nacos-discovery-2.2.1.RELEASE.jar;D:\apache-maven-3.6.1\repository\com\alibaba\nacos\nacos-client\1.2.1\nacos-client-1.2.1.jar;D:\apache-maven-3.6.1\repository\com\alibaba\nacos\nacos-common\1.2.1\nacos-common-1.2.1.jar;D:\apache-maven-3.6.1\repository\commons-io\commons-io\2.2\commons-io-2.2.jar;D:\apache-maven-3.6.1\repository\com\alibaba\nacos\nacos-api\1.2.1\nacos-api-1.2.1.jar;D:\apache-maven-3.6.1\repository\com\fasterxml\jackson\core\jackson-core\2.10.3\jackson-core-2.10.3.jar;D:\apache-maven-3.6.1\repository\io\prometheus\simpleclient\0.5.0\simpleclient-0.5.0.jar;D:\apache-maven-3.6.1\repository\org\yaml\snakeyaml\1.25\snakeyaml-1.25.jar;D:\apache-maven-3.6.1\repository\com\alibaba\spring\spring-context-support\1.0.6\spring-context-support-1.0.6.jar;D:\apache-maven-3.6.1\repository\org\springframework\cloud\spring-cloud-commons\2.2.2.RELEASE\spring-cloud-commons-2.2.2.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\security\spring-security-crypto\5.2.2.RELEASE\spring-security-crypto-5.2.2.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\cloud\spring-cloud-context\2.2.2.RELEASE\spring-cloud-context-2.2.2.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\cloud\spring-cloud-starter-netflix-ribbon\2.2.2.RELEASE\spring-cloud-starter-netflix-ribbon-2.2.2.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\cloud\spring-cloud-starter-netflix-archaius\2.2.2.RELEASE\spring-cloud-starter-netflix-archaius-2.2.2.RELEASE.jar;D:\apache-maven-3.6.1\repository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;D:\apache-maven-3.6.1\repository\com\netflix\ribbon\ribbon\2.3.0\ribbon-2.3.0.jar;D:\apache-maven-3.6.1\repository\com\netflix\ribbon\ribbon-transport\2.3.0\ribbon-transport-2.3.0.jar;D:\apache-maven-3.6.1\repository\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;D:\apache-maven-3.6.1\repository\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;D:\apache-maven-3.6.1\repository\javax\inject\javax.inject\1\javax.inject-1.jar;D:\apache-maven-3.6.1\repository\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;D:\apache-maven-3.6.1\repository\com\netflix\ribbon\ribbon-core\2.3.0\ribbon-core-2.3.0.jar;D:\apache-maven-3.6.1\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;D:\apache-maven-3.6.1\repository\com\netflix\ribbon\ribbon-httpclient\2.3.0\ribbon-httpclient-2.3.0.jar;D:\apache-maven-3.6.1\repository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;D:\apache-maven-3.6.1\repository\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;D:\apache-maven-3.6.1\repository\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;D:\apache-maven-3.6.1\repository\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;D:\apache-maven-3.6.1\repository\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;D:\apache-maven-3.6.1\repository\com\netflix\servo\servo-core\0.12.21\servo-core-0.12.21.jar;D:\apache-maven-3.6.1\repository\com\netflix\netflix-commons\netflix-commons-util\0.3.0\netflix-commons-util-0.3.0.jar;D:\apache-maven-3.6.1\repository\com\netflix\ribbon\ribbon-loadbalancer\2.3.0\ribbon-loadbalancer-2.3.0.jar;D:\apache-maven-3.6.1\repository\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;D:\apache-maven-3.6.1\repository\io\reactivex\rxjava\1.3.8\rxjava-1.3.8.jar;D:\apache-maven-3.6.1\repository\com\alibaba\cloud\spring-cloud-starter-alibaba-nacos-config\2.2.1.RELEASE\spring-cloud-starter-alibaba-nacos-config-2.2.1.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\boot\spring-boot-starter-undertow\2.2.6.RELEASE\spring-boot-starter-undertow-2.2.6.RELEASE.jar;D:\apache-maven-3.6.1\repository\io\undertow\undertow-core\2.0.30.Final\undertow-core-2.0.30.Final.jar;D:\apache-maven-3.6.1\repository\org\jboss\logging\jboss-logging\3.4.1.Final\jboss-logging-3.4.1.Final.jar;D:\apache-maven-3.6.1\repository\org\jboss\xnio\xnio-api\3.3.8.Final\xnio-api-3.3.8.Final.jar;D:\apache-maven-3.6.1\repository\org\jboss\xnio\xnio-nio\3.3.8.Final\xnio-nio-3.3.8.Final.jar;D:\apache-maven-3.6.1\repository\io\undertow\undertow-servlet\2.0.30.Final\undertow-servlet-2.0.30.Final.jar;D:\apache-maven-3.6.1\repository\org\jboss\spec\javax\annotation\jboss-annotations-api_1.2_spec\1.0.2.Final\jboss-annotations-api_1.2_spec-1.0.2.Final.jar;D:\apache-maven-3.6.1\repository\io\undertow\undertow-websockets-jsr\2.0.30.Final\undertow-websockets-jsr-2.0.30.Final.jar;D:\apache-maven-3.6.1\repository\org\jboss\spec\javax\websocket\jboss-websocket-api_1.1_spec\1.1.4.Final\jboss-websocket-api_1.1_spec-1.1.4.Final.jar;D:\apache-maven-3.6.1\repository\jakarta\servlet\jakarta.servlet-api\4.0.3\jakarta.servlet-api-4.0.3.jar;D:\apache-maven-3.6.1\repository\org\glassfish\jakarta.el\3.0.3\jakarta.el-3.0.3.jar;D:\apache-maven-3.6.1\repository\org\springframework\boot\spring-boot-starter-test\2.2.6.RELEASE\spring-boot-starter-test-2.2.6.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\boot\spring-boot-starter\2.2.6.RELEASE\spring-boot-starter-2.2.6.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\boot\spring-boot-starter-logging\2.2.6.RELEASE\spring-boot-starter-logging-2.2.6.RELEASE.jar;D:\apache-maven-3.6.1\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;D:\apache-maven-3.6.1\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\apache-maven-3.6.1\repository\org\apache\logging\log4j\log4j-to-slf4j\2.12.1\log4j-to-slf4j-2.12.1.jar;D:\apache-maven-3.6.1\repository\org\apache\logging\log4j\log4j-api\2.12.1\log4j-api-2.12.1.jar;D:\apache-maven-3.6.1\repository\org\slf4j\jul-to-slf4j\1.7.30\jul-to-slf4j-1.7.30.jar;D:\apache-maven-3.6.1\repository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;D:\apache-maven-3.6.1\repository\org\springframework\boot\spring-boot-test\2.2.6.RELEASE\spring-boot-test-2.2.6.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\boot\spring-boot-test-autoconfigure\2.2.6.RELEASE\spring-boot-test-autoconfigure-2.2.6.RELEASE.jar;D:\apache-maven-3.6.1\repository\com\jayway\jsonpath\json-path\2.4.0\json-path-2.4.0.jar;D:\apache-maven-3.6.1\repository\net\minidev\json-smart\2.3\json-smart-2.3.jar;D:\apache-maven-3.6.1\repository\net\minidev\accessors-smart\1.2\accessors-smart-1.2.jar;D:\apache-maven-3.6.1\repository\jakarta\xml\bind\jakarta.xml.bind-api\2.3.3\jakarta.xml.bind-api-2.3.3.jar;D:\apache-maven-3.6.1\repository\org\junit\jupiter\junit-jupiter\5.5.2\junit-jupiter-5.5.2.jar;D:\apache-maven-3.6.1\repository\org\junit\jupiter\junit-jupiter-api\5.5.2\junit-jupiter-api-5.5.2.jar;D:\apache-maven-3.6.1\repository\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;D:\apache-maven-3.6.1\repository\org\junit\platform\junit-platform-commons\1.5.2\junit-platform-commons-1.5.2.jar;D:\apache-maven-3.6.1\repository\org\junit\jupiter\junit-jupiter-params\5.5.2\junit-jupiter-params-5.5.2.jar;D:\apache-maven-3.6.1\repository\org\junit\jupiter\junit-jupiter-engine\5.5.2\junit-jupiter-engine-5.5.2.jar;D:\apache-maven-3.6.1\repository\org\junit\vintage\junit-vintage-engine\5.5.2\junit-vintage-engine-5.5.2.jar;D:\apache-maven-3.6.1\repository\org\apiguardian\apiguardian-api\1.1.0\apiguardian-api-1.1.0.jar;D:\apache-maven-3.6.1\repository\org\junit\platform\junit-platform-engine\1.5.2\junit-platform-engine-1.5.2.jar;D:\apache-maven-3.6.1\repository\junit\junit\4.12\junit-4.12.jar;D:\apache-maven-3.6.1\repository\org\mockito\mockito-junit-jupiter\3.1.0\mockito-junit-jupiter-3.1.0.jar;D:\apache-maven-3.6.1\repository\org\assertj\assertj-core\3.13.2\assertj-core-3.13.2.jar;D:\apache-maven-3.6.1\repository\org\hamcrest\hamcrest\2.1\hamcrest-2.1.jar;D:\apache-maven-3.6.1\repository\org\mockito\mockito-core\3.1.0\mockito-core-3.1.0.jar;D:\apache-maven-3.6.1\repository\net\bytebuddy\byte-buddy\1.10.8\byte-buddy-1.10.8.jar;D:\apache-maven-3.6.1\repository\net\bytebuddy\byte-buddy-agent\1.10.8\byte-buddy-agent-1.10.8.jar;D:\apache-maven-3.6.1\repository\org\objenesis\objenesis\2.6\objenesis-2.6.jar;D:\apache-maven-3.6.1\repository\org\skyscreamer\jsonassert\1.5.0\jsonassert-1.5.0.jar;D:\apache-maven-3.6.1\repository\com\vaadin\external\google\android-json\0.0.20131108.vaadin1\android-json-0.0.20131108.vaadin1.jar;D:\apache-maven-3.6.1\repository\org\springframework\spring-core\5.2.5.RELEASE\spring-core-5.2.5.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\spring-jcl\5.2.5.RELEASE\spring-jcl-5.2.5.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\spring-test\5.2.5.RELEASE\spring-test-5.2.5.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\xmlunit\xmlunit-core\2.6.4\xmlunit-core-2.6.4.jar;D:\apache-maven-3.6.1\repository\org\freemarker\freemarker\2.3.30\freemarker-2.3.30.jar;D:\apache-maven-3.6.1\repository\org\springframework\cloud\spring-cloud-openfeign-core\2.2.2.RELEASE\spring-cloud-openfeign-core-2.2.2.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\boot\spring-boot-autoconfigure\2.2.6.RELEASE\spring-boot-autoconfigure-2.2.6.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\cloud\spring-cloud-netflix-ribbon\2.2.2.RELEASE\spring-cloud-netflix-ribbon-2.2.2.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\cloud\spring-cloud-netflix-archaius\2.2.2.RELEASE\spring-cloud-netflix-archaius-2.2.2.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\boot\spring-boot-starter-aop\2.2.6.RELEASE\spring-boot-starter-aop-2.2.6.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\spring-aop\5.2.5.RELEASE\spring-aop-5.2.5.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\aspectj\aspectjweaver\1.9.5\aspectjweaver-1.9.5.jar;D:\apache-maven-3.6.1\repository\io\github\openfeign\form\feign-form-spring\3.8.0\feign-form-spring-3.8.0.jar;D:\apache-maven-3.6.1\repository\io\github\openfeign\form\feign-form\3.8.0\feign-form-3.8.0.jar;D:\apache-maven-3.6.1\repository\commons-fileupload\commons-fileupload\1.4\commons-fileupload-1.4.jar;D:\apache-maven-3.6.1\repository\org\springframework\boot\spring-boot-starter-actuator\2.2.6.RELEASE\spring-boot-starter-actuator-2.2.6.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\boot\spring-boot-actuator-autoconfigure\2.2.6.RELEASE\spring-boot-actuator-autoconfigure-2.2.6.RELEASE.jar;D:\apache-maven-3.6.1\repository\org\springframework\boot\spring-boot-actuator\2.2.6.RELEASE\spring-boot-actuator-2.2.6.RELEASE.jar;D:\apache-maven-3.6.1\repository\io\micrometer\micrometer-core\1.3.6\micrometer-core-1.3.6.jar;D:\apache-maven-3.6.1\repository\org\hdrhistogram\HdrHistogram\2.1.11\HdrHistogram-2.1.11.jar;D:\apache-maven-3.6.1\repository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;D:\apache-maven-3.6.1\repository\com\hankcs\hanlp\portable-1.7.8\hanlp-portable-1.7.8.jar;D:\apache-maven-3.6.1\repository\com\szshuwei\fuxiplus\fuxi-plus-person-api\1.0.3-SNAPSHOT\fuxi-plus-person-api-1.0.3-20220224.144333-1.jar;D:\apache-maven-3.6.1\repository\com\shuwei\lego\lego-common-rocketmq\1.1.11_huawei\lego-common-rocketmq-1.1.11_huawei.jar;D:\apache-maven-3.6.1\repository\org\apache\rocketmq\rocketmq-client\4.5.2\rocketmq-client-4.5.2.jar;D:\apache-maven-3.6.1\repository\org\apache\rocketmq\rocketmq-common\4.5.2\rocketmq-common-4.5.2.jar;D:\apache-maven-3.6.1\repository\org\apache\rocketmq\rocketmq-remoting\4.5.2\rocketmq-remoting-4.5.2.jar;D:\apache-maven-3.6.1\repository\io\netty\netty-all\4.1.48.Final\netty-all-4.1.48.Final.jar;D:\apache-maven-3.6.1\repository\org\apache\rocketmq\rocketmq-logging\4.5.2\rocketmq-logging-4.5.2.jar;D:\apache-maven-3.6.1\repository\io\netty\netty-tcnative-boringssl-static\2.0.30.Final\netty-tcnative-boringssl-static-2.0.30.Final.jar;D:\apache-maven-3.6.1\repository\io\github\fanyong920\jvppeteer\1.1.0\jvppeteer-1.1.0.jar;D:\apache-maven-3.6.1\repository\com\fasterxml\jackson\core\jackson-databind\2.10.3\jackson-databind-2.10.3.jar;D:\apache-maven-3.6.1\repository\com\fasterxml\jackson\core\jackson-annotations\2.10.3\jackson-annotations-2.10.3.jar;D:\apache-maven-3.6.1\repository\org\java-websocket\Java-WebSocket\1.5.0\Java-WebSocket-1.5.0.jar;D:\apache-maven-3.6.1\repository\org\apache\commons\commons-compress\1.19\commons-compress-1.19.jar;D:\apache-maven-3.6.1\repository\com\github\ben-manes\caffeine\caffeine\2.9.2\caffeine-2.9.2.jar;D:\apache-maven-3.6.1\repository\org\checkerframework\checker-qual\3.10.0\checker-qual-3.10.0.jar;D:\apache-maven-3.6.1\repository\com\google\errorprone\error_prone_annotations\2.5.1\error_prone_annotations-2.5.1.jar;D:\apache-maven-3.6.1\repository\org\projectlombok\lombok\1.18.12\lombok-1.18.12.jar" com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit4 SingletonNewTest,test3
11:52:12.972 [main] INFO SingletonNewTest - 2022-05-27:11:52:12
11:52:13.636 [main] DEBUG SingletonNewTest - ==============student:Student1(id=69b60c3654de4b4e8683b7f976f11319, name=liha2, sex=null, className=null, backInfo=hello, address=上海, gmtCreate=2022-05-27:11:52:12)
11:52:13.638 [main] INFO SingletonNewTest - 2022-05-27:11:52:12
11:52:13.638 [main] DEBUG SingletonNewTest - ==============student2:Student1(id=3ff50f77f39d413991ce64e37c8aefe0, name=liha3, sex=null, className=null, backInfo=hello, address=上海, gmtCreate=2022-05-27:11:52:12)
11:52:13.638 [main] INFO SingletonNewTest - 2022-05-27:11:52:12
11:52:13.638 [main] DEBUG SingletonNewTest - ==============student3:Student1(id=83fb4833a1ac4c6f8df8e3fa4ee096e0, name=liha32, sex=null, className=null, backInfo=hello, address=上海, gmtCreate=2022-05-27:11:52:12)
11:52:13.638 [main] INFO SingletonNewTest - 2022-05-27:11:52:12
11:52:13.638 [main] DEBUG SingletonNewTest - ==============student4:Student1(id=571c19c6a2914a68a351c52709f082b8, name=liha3333333, sex=null, className=null, backInfo=hello, address=上海, gmtCreate=2022-05-27:11:52:12)
11:52:13.638 [main] INFO SingletonNewTest - ===========set:[Student1(id=571c19c6a2914a68a351c52709f082b8, name=liha3333333, sex=null, className=null, backInfo=hello, address=上海, gmtCreate=2022-05-27:11:52:12), Student1(id=571c19c6a2914a68a351c52709f082b8, name=liha3333333, sex=null, className=null, backInfo=hello, address=上海, gmtCreate=2022-05-27:11:52:12), Student1(id=571c19c6a2914a68a351c52709f082b8, name=liha3333333, sex=null, className=null, backInfo=hello, address=上海, gmtCreate=2022-05-27:11:52:12), Student1(id=571c19c6a2914a68a351c52709f082b8, name=liha3333333, sex=null, className=null, backInfo=hello, address=上海, gmtCreate=2022-05-27:11:52:12)]

java.lang.IllegalStateException: Duplicate key Student1(id=571c19c6a2914a68a351c52709f082b8, name=liha3333333, sex=null, className=null, backInfo=hello, address=上海, gmtCreate=2022-05-27:11:52:12)

at java.util.stream.Collectors.lambda$throwingMerger$0(Collectors.java:133)
at java.util.HashMap.merge(HashMap.java:1253)
at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1320)
at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceOp.eval(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.eval(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at SingletonNewTest.test3(SingletonNewTest.java:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.eval(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.eval(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)
at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)


Process finished with exit code -1


精彩评论(0)

0 0 举报