原文地址:http://www.glxxw2018.com/study/blog/detail/XFMHwObsii.html
strive基础开发框架-一个基于SpringBoot2的配置学习框架,码云开源地址:https://gitee.com/zxstrive/strive
strive框架是使用c3p0连接池的,所以数据访问参数是配置在c3p0,properties文件中的。c3p0配置文件中的数据库的用户名与密码使用了密文形式,使用的是jasypt加密方式。
c3p0配置文件如下:
#数据库连接
c3p0.jdbcUrl=jdbc:h2:~/strive
c3p0.user=ENC(uL9MVZj9gBYd2G55orntDg==)
c3p0.password=ENC(FAGTEX6gL3MycWYtpoRd8A==)
c3p0.driverClass=org.h2.Driver
c3p0.minPoolSize=2
c3p0.maxPoolSize=10
c3p0.maxIdleTime=1800000
c3p0.acquireIncrement=3
c3p0.maxStateme