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