日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網站首頁 mysql 正文

【已解決】Could not find artifact mysql:mysql-connector

作者:執念斬長河 更新時間: 2024-03-21 mysql

今天遇到個問題困擾了我20分鐘,我最終解決了他,寫下此篇博客。原問題是:

Could not find artifact mysql:mysql-connector-java:pom:unknown in centra

解決方案

在pom.xml文件中指定你的mysql版本。

        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>5.1.43</version>
        </dependency>
        <dependency>
            <groupId>org.mybatis.spring.boot</groupId>
            <artifactId>mybatis-spring-boot-starter</artifactId>
            <version>2.0.0</version>
        </dependency>

便可解決此問題了。親自驗證。

原文鏈接:https://blog.csdn.net/m0_37149062/article/details/129788103

  • 上一篇:沒有了
  • 下一篇:沒有了
欄目分類
最近更新