Cannot resolve org.springframework:spring-jdbc:5.0.0.RELEASE
时间: 2023-09-24 17:06:07 浏览: 201
This error usually occurs when the required dependency for Spring JDBC is not present in the project. To resolve this error, you can follow the steps below:
1. Check if you have added the following dependency to your pom.xml file:
```
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>5.0.0.RELEASE</version>
</dependency>
```
2. If the dependency is already added, try updating the version to the latest stable release by changing the version number to the latest stable release in the above code block.
3. If you are using an IDE like Eclipse or Intellij, try updating the Maven project by right-clicking on the project and selecting Maven > Update Project.
4. If the issue still persists, try deleting the local Maven repository located in your user directory (e.g. C:\Users\username\.m2\repository) and then re-building the project.
If none of the above solutions work, you can try searching for the Spring JDBC dependency in the Maven Central Repository and manually downloading the jar file and adding it to your project's classpath.
阅读全文