dao.js 500 B

123456789101112131415161718192021
  1. var ioc = {
  2. conf: {
  3. type: "org.nutz.ioc.impl.PropertiesProxy",
  4. fields: {
  5. paths: ["custom/"]
  6. }
  7. },
  8. dataSource: {
  9. factory: "$conf#make",
  10. args: ["com.alibaba.druid.pool.DruidDataSource", "db."],
  11. type: "com.alibaba.druid.pool.DruidDataSource",
  12. events: {
  13. create: "init",
  14. depose: "close"
  15. }
  16. },
  17. dao: {
  18. type: "org.nutz.dao.impl.NutDao",
  19. args: [{refer: "dataSource"}]
  20. }
  21. }