第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

mybatis的generator出現Exception getting JDBC Driver

Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.5:generate (default-cli) on project miaosha: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.5:generate failed: Exception getting JDBC Driver: com.mysql.jdbc.driver -> [Help 1]

[ERROR]?

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]?

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 1.694 s

查看了pom.xml文件中編寫的內容 沒發(fā)現緣由,但是在去掉dependcy時還是會出現這個問題...癥狀一致

請諸位告知可能引發(fā)這個問題出現的原因,好修改。

<plugin>
???<groupId>org.mybatis.generator</groupId>
???<artifactId>mybatis-generator-maven-plugin</artifactId>
???<version>1.3.5</version>
???<!--?實際項目會有反復的情況-->
???<configuration>
?????<!--?允許移動生成的文件??默認不可以??是否覆蓋設置為true-->
?????<verbose>true</verbose>
?????<overwrite>true</overwrite>
?????<configurationFile>
???????src/main/resources/mybatis-generator.xml
?????</configurationFile>
???</configuration>
???<!--?使用插件必須要有依賴-->
???<!--?使用的是mysql數據庫?因此對Mysql進行解析-->
???<dependencies>
?????<dependency>
???????<groupId>org.mybatis.generator</groupId>
???????<artifactId>mybatis-generator-core</artifactId>
???????<version>1.3.5</version>
?????</dependency>
?????<dependency>
???????<groupId>mysql</groupId>
???????<artifactId>mysql-connector-java</artifactId>
???????<version>5.1.41</version>
?????</dependency>
</dependencies>
<!--?指定導入之后要做的execution-->
???<!--?phase階段在package階段??goal是做一個generate-->
???<executions>
?????<execution>
???????<id>mybatis?generator</id>
???????<phase>package</phase>
???????<goals>
?????????<goal>generate</goal>
???????</goals>
?????</execution>
???</executions>
?</plugin>


正在回答

1 回答

<!--數據庫連接地址賬號密碼?-->
<jdbcConnection?driverClass="com.mysql.jdbc.Driver"

????????????????connectionURL="jdbc:mysql://127.0.0.1:3306/miaosha"

????????????????userId="root"

????????????????password="root">

</jdbcConnection>

問題解決了,pom。xml文件沒有問題。對比別人mybatis-generator.xml文件沒有任何區(qū)別,但是我嘗試下將別人的代碼拷貝進來后,居然成功了,成功了。。。。檢查后發(fā)現是連接池這里可能存在問題,也許是哪里多了空格還是啥的....沒發(fā)現。

0 回復 有任何疑惑可以回復我~
#1

MookeeW 提問者

再一輪排查發(fā)現原因出現在com.mysql.jdbc.Driver 注意 driver需要大寫 大寫?。。?!
2019-01-04 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
SpringBoot構建電商基礎秒殺項目
  • 參與學習       49384    人
  • 解答問題       978    個

應用SpringBoot快速搭建擁有用戶、商品、交易及秒殺活動的電商秒殺應用。

進入課程

mybatis的generator出現Exception getting JDBC Driver

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號