(*) property for user to setup 报这个错误
12 回复
@wendal 就页面地下 有这一句话
四月 12, 2017 11:33:37 上午 com.alibaba.druid.pool.DruidDataSourceStatLoggerImpl info
信息: {"url":"jdbc:jtds:sqlserver://192.168.1.110:1433/db_microclass","dbType":"jtds","name":"DataSource-470611240","activeCount":0,"activePeak":1,"activePeakTime":"2017-04-12 11:33:19","poolingCount":1,"poolingPeak":1,"poolingPeakTime":"2017-04-12 11:33:19","connectCount":4,"closeCount":3,"notEmptyWaitCount":1,"physicalConnectCount":1,"executeCount":21,"connectionHoldTimeHistogram":[]}
var ioc = {
conf : {
type : "org.nutz.ioc.impl.PropertiesProxy",
fields : {
paths : ["custom/"]
}
},
dataSource : {
factory : "$conf#make",
args : ["com.alibaba.druid.pool.DruidDataSource", "db."],
type : "com.alibaba.druid.pool.DruidDataSource",
events : {
create : "init",
depose : 'close'
}
},
dao : {
type : "org.nutz.dao.impl.NutDao",
args : [{refer:"dataSource"}]
}
};
//
//
//
//
//
//
//
//
//
//var ioc = {
//
// conf : {
// type : "org.nutz.ioc.impl.PropertiesProxy",
// fields : {
// paths : ["db.properties"]
// }
//},
// dataSource : {
// type : "com.alibaba.druid.pool.DruidDataSource",
// events : {
// create : "init",
// depose : 'close'
// },
// fields : {
// url : {java :"$conf.get('db-url')"},
// username : {java :"$conf.get('db-username')"},
// password : {java :"$conf.get('db-password')"},
// testWhileIdle : true, // 非常重要,预防mysql的8小时timeout问题
// //validationQuery : "select 1" , // Oracle的话需要改成 select 1 from dual
// maxActive : 100
// }
// },
// dao : {
// type : "org.nutz.dao.impl.NutDao",
// args : [{refer:"dataSource"}]
// }
//};
db.url=jdbc:jtds:sqlserver://192.168.1.110:1433/db_microclass
db.username=sa
db.password=123456
db.validationQuery=select 1
db.maxActive=100
@wendal 多谢
@wendal 可以显示了 (*) property for user to setup 这个还在
@wendal 不知道呢 现在是管用了
添加回复
请先登陆