[INFO ] 16:01:17.379 org.nutz.dao.jdbc.Jdbcs.getExpert(Jdbcs.java:103) - Get Connection from DataSource for JdbcExpert, if you lock at here, check your database server and configure
dataSource : {
type : "com.alibaba.druid.pool.DruidDataSource",
events : {
depose : 'close'
},
fields : {
url : "jdbc:mysql://192.168.2.238:3306/easysoft_dev",
username : "root",
password : "iteasy2016",
maxWait: 15000, // 若不配置此项,如果数据库未启动,druid会一直等可用连接,卡住启动过程
defaultAutoCommit : false // 提高fastInsert的性能
}
}
NutDao dao = new NutDao(ds);