Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
device-new-platform
Commits
5eaffee7
Commit
5eaffee7
authored
Nov 29, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改配置文件
parent
63ef3a34
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
39 deletions
+0
-39
device-manager/src/main/resources/bootstrap.yml
device-manager/src/main/resources/bootstrap.yml
+0
-39
No files found.
device-manager/src/main/resources/bootstrap.yml
View file @
5eaffee7
...
...
@@ -64,51 +64,12 @@ spring:
exceptiontranslation
:
enabled
:
false
datasource
:
druid
:
connect-timeout
:
30000
socket-timeout
:
60000
# 连接池初始化时创建的连接数
initialSize
:
5
# 连接池中最大连接数
maxActive
:
50
# 连接池中最小空闲连接数
minIdle
:
5
# 连接池中最大空闲连接数
maxIdle
:
10
# 获取连接时的最大等待时间(毫秒)
maxWait
:
60000
# 间隔多久检测一次空闲连接(毫秒)
timeBetweenEvictionRunsMillis
:
60000
# 连接池中连接最小空闲时间(毫秒)
minEvictableIdleTimeMillis
:
300000
# 用于检测连接是否有效的SQL语句
validationQuery
:
SELECT
1
# 是否开启空闲连接的检测
testWhileIdle
:
true
# 是否开启连接的检测功能,在获取连接时检测连接是否有效
testOnBorrow
:
false
# 是否开启连接的检测功能,在归还连接时检测连接是否有效
testOnReturn
:
false
# 是否缓存PreparedStatement对象
poolPreparedStatements
:
true
# 缓存PreparedStatement对象的最大数量
maxPoolPreparedStatementPerConnectionSize
:
20
# 配置监控统计用的filter,允许监控统计
filters
:
stat
# 配置扩展属性,用于监控统计分析SQL性能等
connectionProperties
:
druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
type
:
com.alibaba.druid.pool.DruidDataSource
#driver-class-name: com.p6spy.engine.spy.P6SpyDriver
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
@
profiles.datasource.uri@
username
:
@
profiles.datasource.username@
password
:
@
profiles.datasource.password@
initialSize
:
10
minIdle
:
10
maxActive
:
40
maxWait
:
60000
test-on-borrow
:
true
test-while-idle
:
true
mybatis
:
root-path
:
com.mortals
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment