没有合适的资源?快使用搜索试试~ 我知道了~
spring+mybatis+freemarker
需积分: 0 0 下载量 145 浏览量
2018-12-26
10:21:45
上传
评论
收藏 123KB DOCX 举报
温馨提示
试读
5页
springboot+mybatis+freemarker相关问题和知识点,希望对各位有用!
资源推荐
资源详情
资源评论
添加 druid 的连接池
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.0.25</version>
</dependency>
添加 applicaon.properes
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.url = jdbc:mysql://localhost:3306/edu1?
useUnicode=true&characterEncoding=utf-8
spring.datasource.username = root
spring.datasource.password = 123456
spring.datasource.driverClassName = com.mysql.jdbc.Driver
#
连接池的配置信息
spring.datasource.initialSize=5
spring.datasource.minIdle=5
spring.datasource.maxActive=20
spring.datasource.maxWait=60000
spring.datasource.timeBetweenEvictionRunsMillis=60000
spring.datasource.minEvictableIdleTimeMillis=300000
spring.datasource.validationQuery=SELECT 1 FROM DUAL
spring.datasource.testWhileIdle=true
spring.datasource.testOnBorrow=false
spring.datasource.testOnReturn=false
spring.datasource.poolPreparedStatements=true
spring.datasource.maxPoolPreparedStatementPerConnectionSize=20
spring.datasource.<lters=stat,wall,log4j
spring.datasource.connectionProperties=druid.stat.mergeSql=true;druid
.stat.slowSqlMillis=5000
资源评论
搬码日记
- 粉丝: 645
- 资源: 26
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功