设置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

@ -1,7 +1,7 @@
server: {port: 8083}
spring:
datasource: {url: 'jdbc:mysql://127.0.0.1:3306/books?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai',
username: root, password: test123456}
datasource: {url: 'jdbc:mysql://47.106.243.172:3306/books?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai',
username: books, password: books!8888}
mybatis:
mapper-locations: classpath:mybatis/mapping/*.xml
type-aliases-package: xyz.zinglizingli.books.po