问题:
启动测试方法时报错:
org.junit.platform.commons.JUnitException: MethodSelector Caused by:
java.lang.ArrayStoreException:
sun.reflect.annotation.TypeNotPresentExceptionProxy
解决办法:
依赖错误:检查pom文件依赖
附上完整依赖:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
问题解决