Dependency 'org.springframework.boot:spring-boot-starter-test:' not found
时间: 2023-10-23 16:27:58 浏览: 189
As an AI language model, I cannot access your system's dependencies or project files. However, if you are encountering the error message "Dependency 'org.springframework.boot:spring-boot-starter-test:' not found" while building or running a Spring Boot project, it usually means that the required dependency is not added to the project's build file or the dependency resolution failed due to an internet connection issue.
To add the missing dependency to your project, you need to add the following dependency to your project build file (e.g., build.gradle or pom.xml):
Gradle:
```
testImplementation 'org.springframework.boot:spring-boot-starter-test'
```
Maven:
```
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
```
After adding the dependency to the build file, you need to refresh or rebuild the project to download and resolve the dependency.
阅读全文