Grails 3.0.9 ClassNotFoundException:com.mysql.jdbc.Driver
我的Grails 3.0.9 ClassNotFoundException:com.mysql.jdbc.Driver,grails,Grails,我的应用程序.yml> dataSource: pooled: true jmxExport: true driverClassName: com.mysql.jdbc.Driver dialect: org.hibernate.dialect.MySQL5InnoDBDialect username: root password: ***** environments: development: dataSource:
应用程序.yml
>
dataSource:
pooled: true
jmxExport: true
driverClassName: com.mysql.jdbc.Driver
dialect: org.hibernate.dialect.MySQL5InnoDBDialect
username: root
password: *****
environments:
development:
dataSource:
#dbCreate: create-drop
#url: jdbc:h2:mem:devDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE
dbCreate: update
driverClassName: com.mysql.jdbc.Driver"
url: jdbc:mysql://localhost:3306/data?useUnicode=yes&characterEncoding=UTF-8"
username: "root"
password: "*****"
在build.gradle中
>
dependencies {
runtime 'mysql:mysql-connector-java:5.1.36'
例外情况>
Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver"
甚至我也试着从命令提示符下运行。。
给定相同的ClassNotFoundException
已修复。。误将“字符串添加到com.mysql.jdbc.Driverfixed..误将”字符串添加到com.mysql.jdbc.Driver的末尾