设置restTemplate连接池大小,解决连接池不足的问题

This commit is contained in:
xiongxiaoyang
2019-12-12 18:40:14 +08:00
parent de2bb731b5
commit 03171327ac
4 changed files with 23 additions and 6 deletions

View File

@ -36,8 +36,8 @@ spring:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/books?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username: books
password: books
username: root
password: test123456
#password:
initialSize: 1
minIdle: 3