Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
matrix
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
mall
arch
matrix
Commits
3be9dbb0
Commit
3be9dbb0
authored
Mar 10, 2020
by
qiuweili123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加默认数据源属性
parent
34e5b97a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
MatrixDruidDataSourceProperties.java
matrix-datasource/matrix-datasource-druid/src/main/java/com/secoo/mall/datasource/properties/MatrixDruidDataSourceProperties.java
+6
-5
No files found.
matrix-datasource/matrix-datasource-druid/src/main/java/com/secoo/mall/datasource/properties/MatrixDruidDataSourceProperties.java
View file @
3be9dbb0
...
...
@@ -10,11 +10,11 @@ import java.util.concurrent.TimeUnit;
public
class
MatrixDruidDataSourceProperties
extends
MatrixDataSourceProperties
{
public
static
final
String
PREFIX
=
MatrixDataSourceProperties
.
PREFIX
+
".druid"
;
private
Integer
initialSize
;
private
Integer
initialSize
=
20
;
private
Long
timeBetweenEvictionRunsMillis
=
DruidAbstractDataSource
.
DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS
;
private
Long
timeBetweenLogStatsMillis
;
private
Integer
minIdle
;
private
Integer
maxIdle
;
private
Integer
minIdle
=
5
;
private
Integer
maxIdle
=
20
;
private
Long
maxWait
=
TimeUnit
.
SECONDS
.
toMillis
(
3L
);
private
Integer
statSqlMaxSize
;
private
Long
minEvictableIdleTimeMillis
;
...
...
@@ -33,7 +33,7 @@ public class MatrixDruidDataSourceProperties extends MatrixDataSourceProperties
private
Integer
maxWaitThreadCount
;
private
Boolean
failFast
;
private
Long
phyTimeoutMillis
;
private
Boolean
keepAlive
;
private
Boolean
keepAlive
=
true
;
private
Boolean
poolPreparedStatements
;
private
Boolean
initVariants
;
private
Boolean
initGlobalVariants
;
...
...
@@ -43,8 +43,9 @@ public class MatrixDruidDataSourceProperties extends MatrixDataSourceProperties
private
Integer
maxPoolPreparedStatementPerConnectionSize
;
private
String
initConnectionSqls
;
private
Boolean
sharePreparedStatements
=
false
;
private
Integer
connectionErrorRetryAttempts
=
1
;
private
Integer
connectionErrorRetryAttempts
=
3
;
private
Boolean
breakAfterAcquireFailure
;
private
Long
timeBetweenConnectErrorMillis
=
30000L
;
private
Boolean
removeAbandoned
;
private
Integer
removeAbandonedTimeoutMillis
;
private
Boolean
logAbandoned
;
...
...
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