dao.js配置如下:
```js
var ioc = {
dataSource: {
type: "com.alibaba.druid.pool.DruidDataSource",
events: {
depose: "close"
},
fields: {
url: "jdbc:mysql://localhost:3306/seekop?autoReconnect=true&failOverReadOnly=false&useUnicode=true&characterEncoding=utf8&useOldAliasMetadataBehavior=true",
username: "root",
password: "root",
testWhileIdle: true,
validationQuery: "select 1",
driverClassName: "com.mysql.jdbc.Driver",
maxActive: 100
}
},
dao: {
type: "org.nutz.dao.impl.NutDao",
args: [{refer: "dataSource"}]
}
}
``
这样配置后,发现driverClassName截取到的字符串是
"com.mysql.jdbc.Driver",而不是
com.mysql.jdbc.Driver`。然后就杯具了……
有出现过这样的问题吗?