가 나는 봄 부팅 내 통합 테스트 업그레이드를 시도하고 나에게 SpringRunner.class
SpringRunner 종속성 클래스는
의 의존성을 제공하는 항아리 찾을 수 없습니다 찾을 수 없습니다 1.4.0
가 나는 봄 부팅 내 통합 테스트 업그레이드를 시도하고 나에게 SpringRunner.class
SpringRunner 종속성 클래스는
의 의존성을 제공하는 항아리 찾을 수 없습니다 찾을 수 없습니다 1.4.0
당신은 할 수 search.maven.org
https://search.maven.org/#search|ga|1|fc%3A%22SpringRunner%22
SpringRunner.java
에서 클래스 검색은 spring-test-4.3.2.RELEASE.jar
파일에 있습니다.
Maven 또는 Gradle 프로젝트에서 사용하려면 org.springframework.boot:spring-boot-starter-test
에 대한 종속성을 선언해야합니다. 여기
org.springframework.boot:spring-boot-starter-test
가 의존하는 라이브러리입니다
+--- org.springframework.boot:spring-boot-starter-test: -> 1.4.0.RELEASE
| +--- org.springframework.boot:spring-boot-test:1.4.0.RELEASE
| | \--- org.springframework.boot:spring-boot:1.4.0.RELEASE (*)
| +--- org.springframework.boot:spring-boot-test-autoconfigure:1.4.0.RELEASE
| | +--- org.springframework.boot:spring-boot-test:1.4.0.RELEASE (*)
| | \--- org.springframework.boot:spring-boot-autoconfigure:1.4.0.RELEASE (*)
| +--- com.jayway.jsonpath:json-path:2.2.0
| | +--- net.minidev:json-smart:2.2.1
| | | \--- net.minidev:accessors-smart:1.1
| | | \--- org.ow2.asm:asm:5.0.3
| | \--- org.slf4j:slf4j-api:1.7.16 -> 1.7.19
| +--- junit:junit:4.12
| | \--- org.hamcrest:hamcrest-core:1.3
| +--- org.assertj:assertj-core:2.5.0 -> 2.4.1
| +--- org.mockito:mockito-core:1.10.19
| | +--- org.hamcrest:hamcrest-core:1.1 -> 1.3
| | \--- org.objenesis:objenesis:2.1 -> 2.2
| +--- org.hamcrest:hamcrest-core:1.3
| +--- org.hamcrest:hamcrest-library:1.3
| | \--- org.hamcrest:hamcrest-core:1.3
| +--- org.skyscreamer:jsonassert:1.3.0
| | \--- org.json:json:20090211 -> 20140107
| +--- org.springframework:spring-core:4.3.2.RELEASE
| \--- org.springframework:spring-test:4.3.2.RELEASE
| \--- org.springframework:spring-core:4.3.2.RELEASE
를 사용하여 다음과 같은 받는다는 종속성. 이 수입 추가 수동
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.4.0.RELEASE</version>
<relativePath />
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
을 시도해보십시오
수입 org.springframework.test.context.junit4.SpringRunner을;
아마도 'spring-boot-starter-test'의 버전에 대한 의존성을 선언하셨습니까? 그렇지 않으면 자동으로 올바른 것을 사용해야합니다. –
그래, 이제 해결 됐어. 나는 spring-boot-starter-test 의존성을 추가했지만 어떻게 든 다운로드 된 spring-test는 손상되어서 의존성이 제대로 해결되지 않았다. 모든 의견을 보내 주셔서 감사합니다. – Sagar