|
dao.js代码片段 dataSource : { type : "com.alibaba.druid.pool.DruidDataSource", events : { create : "init", depose : 'close' }, fields : { url : { java : "$conf.get('db.erp.url')" }, username : { java : "$conf.get('db.erp.username')" }, password : { java : "$conf.get('db.erp.password')" }, filters: "config", connectionProperties: {java:"$conf.get('db.erp.connectionProperties')"}, testWhileIdle : true, validationQuery : "select 1", maxActive : { java : "$conf.getInt('db.erp.maxActive', 30)" } } },db.properties代码片段 db.erp.url=jdbc:mysql://shujuku.mysql.rds.aliyuncs.com/erp?zeroDateTimeBehavior=convertToNulldb.erp.username=rootdb.erp.password=YhtWoHq535GAfYhNC6Siv9T6k45t1pMCTf737pPyA8DudllBFVx5HbG5Iic6db.erp.connectionProperties=config.decrypt=true;config.decrypt.key=QYJKoZIhvcAwSAJBAK4JsP1Y3H1scJ2GE2uu2R3MQq+WC/sM8d//hpsd0Sd4Ip6nYvU/UDydNGtBG+vApa5a0db.erp.maxActive=30
|
|