Cannot resolve mysql:mysql-connector-java:8.0.20

错误场景:使用SpringBoot配置MySQL时,提示Cannot resolve mysql:mysql-connector-java:8.0.20

解决方法

设置MySQL的版本号

        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <scope>runtime</scope>
            <version>8.0.11</version>
        </dependency>

 附加:MySQL的版本https://repo.maven.apache.org/maven2/mysql/mysql-connector-java/

posted on 2020-07-05 21:10  迷途行者  阅读(10599)  评论(0编辑  收藏  举报

导航