国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

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

這篇具有很好參考價值的文章主要介紹了【已解決】Could not find artifact mysql:mysql-connector。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

今天遇到個問題困擾了我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>

便可解決此問題了。親自驗證。文章來源地址http://www.zghlxwxcb.cn/news/detail-505653.html

到了這里,關(guān)于【已解決】Could not find artifact mysql:mysql-connector的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權(quán),不承擔相關(guān)法律責任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務器費用

相關(guān)文章

  • IDEA報錯:Could not find artifact mysql:mysql-connector-java:pom:unknown in central (https://repo.maven

    IDEA報錯:Could not find artifact mysql:mysql-connector-java:pom:unknown in central (https://repo.maven

    IDEA 運行報錯:Could not find artifact mysql:mysql-connector-java:pom:unknown in central (https://repo.maven.apache.org/maven2) 報錯原因:Maven 找不到mysql 解決方案:由于之前IDEA?dependency?mysql: dependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId /dependency 修改:在pom.xml文件中指定你的mysql版本。

    2024年02月13日
    瀏覽(20)
  • 逐步解決Could not find artifact com:ojdbc8:jar:12

    逐步解決Could not find artifact com:ojdbc8:jar:12

    Could not find artifact com:ojdbc8:jar:12 in central (https://repo.maven.apache.org/maven2) 原因:?ojdbc8:jar:12 屬于Oracle 數(shù)據(jù)庫鏈接的一個程序集,缺失的話很有可能會影響數(shù)據(jù)庫鏈接,蝴蝶效應產(chǎn)生不可預測的BUG!但是版權(quán)問題,Maven已經(jīng)不能從自己的云庫中加載了。都需要單獨手動安裝! JD

    2024年02月07日
    瀏覽(19)
  • 已解決 IDEA Maven 項目中 “Could not find artifact“ 問題的常見情況和解決方案

    已解決 IDEA Maven 項目中 “Could not find artifact“ 問題的常見情況和解決方案

    ???? 博主 libin9iOak帶您 Go to New World.??? ?? 個人主頁——libin9iOak的博客?? ?? 《面試題大全》 文章圖文并茂??生動形象??簡單易學!歡迎大家來踩踩~?? ?? 《IDEA開發(fā)秘籍》學會IDEA常用操作,工作效率翻倍~?? ???? 希望本文能夠給您帶來一定的幫助??文章粗淺,敬

    2024年02月11日
    瀏覽(29)
  • IDEA Maven 項目中 “Could not find artifact“ 問題的常見情況和解決方案

    在IDEA(IntelliJ IDEA)中使用Maven構(gòu)建項目時,有時會遇到“Could not find artifact”這樣的錯誤。這個錯誤通常意味著Maven試圖下載或查找某個依賴項,但是沒有在配置的倉庫中找到。這個問題可能會導致項目構(gòu)建失敗,因此需要了解常見的情況以及相應的解決方案。 IDEA Maven項目中

    2024年04月26日
    瀏覽(120)
  • Maven異常:Could not find artifact

    Maven異常:Could not find artifact

    異常來源: 筆者在構(gòu)建springboot多module項目時,parent模塊構(gòu)建了parent依賴,而子項目pom文件的 標紅,進入發(fā)現(xiàn)出現(xiàn)類似這樣的錯誤:Could not find artifact***; 異常原因: 經(jīng)過度娘驗證,發(fā)現(xiàn)是在子module中沒有得到父模塊的依賴, 解決辦法: 1、 筆者使用的是Intellil Idea,在mav

    2024年02月16日
    瀏覽(15)
  • idea 找不到類 could not find artifact

    idea 找不到類 could not find artifact

    剛開始接手一個項目,代碼clone下來過后卻跑不起來是一件很尷尬的事情,這里整理了找不到類報錯的常見解決方案 1.刷新maven項目 (Generate Sources and update folders for all projects) 2.清理idea緩存 (這一步能解決大部分的問題) ? (推薦勾選1 2行)一般來說勾選第二行就可以了

    2023年04月08日
    瀏覽(28)
  • 已解決Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.4.RELEASE

    已解決Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.4.RELEASE Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.4.RELEASE 出現(xiàn)找不到Spring Boot依賴的錯誤可能有多種原因 下滑查看解決方法 以下是一些常見的解決方法: 清理本地Maven倉庫:有時候

    2024年02月05日
    瀏覽(34)
  • springboot web創(chuàng)建失敗,解決Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom

    springboot web創(chuàng)建失敗,解決Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom

    jdk8不支持3.0以上的springboot版本,如果你在創(chuàng)建項目的時候用的是jdk8,那么我建議你在創(chuàng)建好項目之后自行再pom文件里降級,我剛開始接觸springboot時,用的是jdk11,導入的springboot版本是2.7.1,然后弄了差不多半天都找不到原因,然后我就擴大了阿里云的搜索地址,自行在pom文

    2024年02月04日
    瀏覽(33)
  • maven父工程出現(xiàn)Could not find artifact xxx異常

    maven父工程出現(xiàn)Could not find artifact xxx異常

    maven錯誤: 錯誤:找不到 xxx的artifact,而這個artifact都是由relativePath標簽來指定的。因此問題出在relativePath標簽的指定的父工程地址寫錯了! 場景描述: 父工程cloud-demo聚合多個子工程,pom.xml如下: 子工程又繼承了該父工程,pom如下 ?當對父工程執(zhí)行maven指令,比如maven ins

    2024年02月12日
    瀏覽(92)
  • 解決Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.6.2 in alimaven

    解決Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.6.2 in alimaven

    在部署SpringBoot項目時遇到pom所有版本號爆紅,而報錯只有標題中的那句話,嘗試了多種方法即便不再報錯但仍爆紅。在查閱和嘗試了多種方法后,我決定刪除之前的maven鏡像配置嘗試一下。 方法: 復制一下配置代碼,至maven文件下的conf,找到settings.xml,選擇文本方式打開文

    2024年04月17日
    瀏覽(29)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包