相关推荐recommended
IDEA报错:Could not find artifact mysql:mysql-connector-java:pom:unknown in central (https:repo.maven
作者:mmseoamin日期:2023-12-20

IDEA 运行报错:Could not find artifact mysql:mysql-connector-java:pom:unknown in central (https://repo.maven.apache.org/maven2)

报错原因:Maven 找不到mysql

解决方案:由于之前IDEA dependency mysql:

mysql

mysql-connector-java

修改:在pom.xml文件中指定你的mysql版本。注意:这里mysql 的version要和本地mysql 版本一致


   mysql
   mysql-connector-java
   8.0.21
   runtime

 IDEA报错:Could not find artifact mysql:mysql-connector-java:pom:unknown in central (https:repo.maven,第1张