简体   繁体   中英

I am getting an error when i try to add mysql connector dependency

i tried to add the dependency in pom.xml.here is the code i used.

<dependency>
    <groupId>mysql</groupId>
    <artifactId>mysql-connector-java</artifactId>
    <version>8.0.15</version>
</dependency>

but i am getting an error when i try to run the server.the error is below.

Error reading file C:\Users\Rusiru\.m2\repository\mysql\mysql-connector- 
java\8.0.15\mysql-connector-java-8.0.15.jar
C:\Users\Rusiru\.m2\repository\mysql\mysql-connector-java\8.0.15\mysql- 
connector-java-8.0.15.jar (The system cannot find the file specified)

From the Eclipse menu: Project -> Maven-> Update Project...

Rebuild all.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM