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

‘dependencies.dependency.version‘ for mysql:mysql-connector-java:jar is missing.問題處理

這篇具有很好參考價(jià)值的文章主要介紹了‘dependencies.dependency.version‘ for mysql:mysql-connector-java:jar is missing.問題處理。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

項(xiàng)目使用的技術(shù)框架是Spring Boot,依賴管理工具是Maven,需要用到數(shù)據(jù)庫所以引入了mysql-connector-java相關(guān)jar包。

之前項(xiàng)目一直正常的,不會(huì)報(bào)錯(cuò),最近更新了一下版本,項(xiàng)目啟動(dòng)的時(shí)候直接報(bào)錯(cuò):

[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'dependencies.dependency.version' for mysql:mysql-connector-java:jar is missing. @ line 67, column 21
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project com.site.blog.my.core:my-blog:5.0.0-SNAPSHOT (/Desktop/項(xiàng)目/My-Blog/pom.xml) has 1 error
[ERROR]     'dependencies.dependency.version' for mysql:mysql-connector-java:jar is missing. @ line 67, column 21

看到這個(gè)報(bào)錯(cuò)后,嘗試刷新本地緩存、刷新Maven依賴,但是都沒作用,問題依然存在。網(wǎng)上搜了這個(gè)問題,也沒看到和我類似的,所以只能自己處理一下。

最后發(fā)現(xiàn),修改一下MySQL驅(qū)動(dòng)類即可。

原來的寫法:

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

修改后,Spring Boot高版本的寫法如下:

        <dependency>
            <groupId>com.mysql</groupId>
            <artifactId>mysql-connector-j</artifactId>
            <scope>runtime</scope>
        </dependency>

高版本的MySQL驅(qū)動(dòng)類的路徑有所修改,處理完成后,項(xiàng)目就能夠正常啟動(dòng)了。文章來源地址http://www.zghlxwxcb.cn/news/detail-598820.html

到了這里,關(guān)于‘dependencies.dependency.version‘ for mysql:mysql-connector-java:jar is missing.問題處理的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

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

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • mysql-connector-java-8.0.11-sources.jar下載后無法運(yùn)行

    mysql-connector-java-8.0.11-sources.jar下載后無法運(yùn)行

    目錄 問題背景 解決方法 1. 確保驅(qū)動(dòng)已添加到項(xiàng)目中 2. 確保驅(qū)動(dòng)版本與你的代碼匹配 今天寫代碼遇到這個(gè)報(bào)錯(cuò),解決后發(fā)出來分享一下: java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

    2024年02月09日
    瀏覽(27)
  • JDBC驅(qū)動(dòng)包下載教程mysql-connector-java.jar包的下載教程

    JDBC驅(qū)動(dòng)包下載教程mysql-connector-java.jar包的下載教程

    java代碼使用JDBC連接數(shù)據(jù)庫少不了連接工具,數(shù)據(jù)庫的連接時(shí)需要jar包,今天講一下mysql-connector-java.jar怎么下載。 第一步,打開mysql的官網(wǎng):https://www.mysql.com/ 第二步,選擇downloads。 第三步,點(diǎn)擊下方的Mysql?Community?Downloads。 然后單擊選擇 Connector/J 選項(xiàng): 第四步,在此處下拉

    2024年02月11日
    瀏覽(25)
  • 建立springboot項(xiàng)目遇到:Cannot resolve com.mysql:mysql-connector-java:unknown報(bào)錯(cuò)

    建立springboot項(xiàng)目遇到:Cannot resolve com.mysql:mysql-connector-java:unknown報(bào)錯(cuò)

    今天建立spring boot項(xiàng)目遇到一個(gè)報(bào)錯(cuò),記錄一下: 報(bào)錯(cuò)內(nèi)容為: 在pom.xml中配置爆紅: 在application.properties中數(shù)據(jù)庫驅(qū)動(dòng)爆紅:com.mysql.cj.jdbc.Driver爆紅; 解決方法: 我是對(duì)pom.xml做了如下修改: 然后報(bào)錯(cuò)解決;

    2024年02月12日
    瀏覽(24)
  • ‘dependencies.dependency.systemPath‘ for *:*:jar must specify an absolute path but is

    ‘dependencies.dependency.systemPath‘ for *:*:jar must specify an absolute path but is

    下面是一張模塊與子模塊的目錄圖 ?kingdeekingdee-bizpom.xml依賴本地lib/k3cloud-webapi-sdk8.0.4.jar,配置如下: pom.xml報(bào)錯(cuò)提示: \\\'dependencies.dependency.systemPath\\\' for kingdee:kingdee:jar must specify an absolute path but is ${project.parent.basedir}/lib/k3cloud-webapi-sdk8.0.4.jar 意思是說:systemPath?只認(rèn)識(shí)絕對(duì)路徑

    2024年02月08日
    瀏覽(15)
  • Understanding Dependency Injection for angular

    Understanding Dependency Injection for angular

    Angular https://angular.io/guide/dependency-injection Denpendency Injection,? or DI, is one of fundamental concepts for angular, DI is writed by angular framework and allows classes with? Angular decorators,? such as Components, directives, Piples and Injectables , to configure dependencies that they need. ?Two main roles exists in DI system: dependency

    2024年02月10日
    瀏覽(43)
  • Could not resolve dependencies for project

    Could not resolve dependencies for project

    maven 打包Could not resolve dependencies for project和無效的目標(biāo)發(fā)行版: 1.8 1.maven 打包Could not resolve dependencies for project 最近項(xiàng)目上使用的是idea ide的多模塊話,需要模塊之間的依賴,比如說系統(tǒng)管理模塊依賴授權(quán)模塊進(jìn)行認(rèn)證和授權(quán),而認(rèn)證授權(quán)模塊需要依賴系統(tǒng)管理模塊進(jìn)行,然后

    2024年02月08日
    瀏覽(32)
  • Angular(二) Understanding Dependency Injection for angular

    Angular(二) Understanding Dependency Injection for angular

    Angular https://angular.io/guide/dependency-injection Denpendency Injection,? or DI, is one of fundamental concepts for angular, DI is writed by angular framework and allows classes with? Angular decorators,? such as Components, directives, Piples and Injectables , to configure dependencies that they need. ?Two main roles exists in DI system: dependency

    2024年02月09日
    瀏覽(46)
  • 出現(xiàn)以上報(bào)錯(cuò):Could not find artifact mysql:mysql-connector-java:pom:8.0.35 in alimaven

    出現(xiàn)以上報(bào)錯(cuò):Could not find artifact mysql:mysql-connector-java:pom:8.0.35 in alimaven

    代表在maven倉庫沒有找到對(duì)應(yīng)版本的MySQL 如果你這里是導(dǎo)入其他包建議去找maven倉庫直接搜索 鏈接?倉庫服務(wù) (aliyun.com) 在箭頭處輸入你的包名 這樣問題就解決了

    2024年02月04日
    瀏覽(19)
  • Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.3.

    Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.3.

    安裝擴(kuò)展后執(zhí)行 提示 PHP版本問題 1、在項(xiàng)目對(duì)應(yīng)的composer.json文件中添加: 如: 2、在對(duì)應(yīng)的項(xiàng)目執(zhí)行:composer dump 如果在執(zhí)行過程中,遇到這種錯(cuò)誤: 可在,php.ini配置文件中 將此函數(shù)去掉忽略即可。

    2024年02月15日
    瀏覽(20)
  • Could not find artifact mysql:mysql-connector-java:pom:unknown in central (https://repo.maven.apache

    報(bào)錯(cuò)原因:Could not find artifact mysql:mysql-connector-java:pom:unknown in centra 解決方法: 在pom.xml文件中指定你的mysql版本。 dependency ????????groupIdmysql/groupId ????????artifactIdmysql-connector-java/artifactId ????????version5.1.43/version ????????scoperuntime/scope /dependency

    2024年02月13日
    瀏覽(21)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包