Spock使用spring-boot-starter 1.5.16.RELEASE测试问题

时间:2018-09-12 09:22:17

标签: java spring unit-testing spring-boot groovy

我将项目从spring-boot-starter 1.2.3升级到1.5.16,现在启动spock测试时遇到问题。错误是:

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on proyect: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed: There was an error in the forked process
java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotatedElementUtils.findMergedAnnotationAttributes(Ljava/lang/reflect/AnnotatedElement;Ljava/lang/String;ZZ)Lorg/springframework/core/annotation/AnnotationAttributes;

我读到它可能是一个弹簧测试和弹簧核心版本,但是我有相同的版本4.1.6.RELEASE

0 个答案:

没有答案