var ioc = {
dateSource:{
type: "com.alibaba.druid.pool.DruidDataSource",
events:{
create : "init",
depose : 'close'
},
fields : {
driverName : "oracle.jdbc.driver.OracleDriver",
url : "jdbc:oracle:thin:@localhost:1521:TING",
username : "scott",
password : "ting",
testWhileIdle : true,
maxActive : 100
}
},
dao :{
type:"org.nutz.dao.impl.NutDao",
args :
[{refer : "dateSource"}]
}
};
这是我的JS