非web项目使用druid连接池时,不使用xml文件和spring框架,只使用properties文件配置连接池参数的示范: properties文件示例: 转载于:https://my.oschina.net/qw3670/blog/3024358