摘要:
1.首先声明一个连接池对象 private static DruidDateSource druidDateSource; 2.在获得字节流之后,在获取连接池的值 通过DruidDateSourceFactory.createDateSource方法获得 此方法接收的为一个properties集合, 阅读全文
posted @ 2021-11-10 09:26
软工小蜗牛
阅读(126)
评论(0)
推荐(0)
摘要:
1.首先先写配置文件 配置文件包括 driver 驱动 url user password 四部分 2.在工具类中首先声明一个静态常量 private static final Properties properties = new Properties();//存储配置文件的map集合; 3.获得 阅读全文
posted @ 2021-11-10 08:38
软工小蜗牛
阅读(143)
评论(0)
推荐(0)

浙公网安备 33010602011771号