db.properties的配置
连接数据库的驱动:
driverClassName=com.mysql.jdbc.Driver
连接数据库的端口 库名 协议 及字符编码格式
url=jdbc:mysql://localhost:3306/drp?useSSL=false&rewriteBatchedStatements=true&characterEncoding=UTF-8
数据库用户名:
username=root
数据库密码:
password=
initialSize=1
允许的最大值
maxActive=5
最大等待时长 ms
maxWait=3000
removeAbandoned=true
removeAbandonedTimeout=180
logAbandoned=true