在eclipse的“Data Source Explorer”彈出對話框中選一個driver,出現了
Unable to locate JAR/zip in file system as specified by the driver definition: xxx.jar.
解決辦法很簡單:
只要在“JAR List”選項卡中刪除原有的驅動文件,重新加一下你目前項目所使用的mysql版本就行了。
我的放在了C盤:
C:\.m2\repository\mysql\mysql-connector-java\5.1.30\mysql-connector-java-5.1.30.jar.
:DriverDefn.org.eclipse.datatools.enablement.mysql.5_1.driverTemplate.MySQL JDBC Driver.
Using the driver properties defined in database profile instead.