Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pass
configuration
Commits
b1dbd8f6
Commit
b1dbd8f6
authored
Nov 12, 2020
by
dwxh
🕸
Browse files
增加后端自动化配置
parent
1f3c9f50
Changes
2
Hide whitespace changes
Inline
Side-by-side
passBack/passback-debug.yaml
0 → 100644
View file @
b1dbd8f6
server
:
port
:
8081
servlet
:
context-path
:
/
spring
:
datasource
:
url
:
jdbc:mysql://localhost:3306/APS?serverTimezone=UTC&allowMultiQueries=true
username
:
root
password
:
123456
driver-class-name
:
com.mysql.cj.jdbc.Driver
initialization-mode
:
always
schema
:
classpath*:sql/init.sql
druid
:
initialSize
:
5
minIdle
:
5
maxActive
:
20
maxWait
:
60000
timeBetweenEvictionRunsMillis
:
60000
minEvictableIdleTimeMillis
:
300000
validationQuery
:
SELECT 1 FROM DUAL
poolPreparedStatements
:
true
useGlobalDataSourceStat
:
true
filters
:
stat,wall
web-stat-filter
:
enabled
:
true
url-pattern
:
"
/*"
exclusions
:
"
*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"
session-stat-enable
:
true
session-stat-max-count
:
1000
stat-view-servlet
:
enabled
:
true
url-pattern
:
/druid/*
reset-enable
:
false
login-username
:
root
login-password
:
root
#通过connectProperties属性来打开mergeSql功能;慢SQL记录
connectionProperties
:
druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
jpa
:
database
:
MYSQL
show-sql
:
true
properties
:
hibernate
:
dialect
:
org.hibernate.dialect.MySQLDialect
hibernate
:
ddl-auto
:
update
naming
:
physical-strategy
:
org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
logging
:
level
:
root
:
debug
pattern
:
console
:
"
%clr(%d{yyyy-MM-dd
HH:mm:ss}){faint}
%clr(${LOG_LEVEL_PATTERN:-%5p})
%clr(-){faint}
%clr([%14.14t]){faint}
%clr(%-40.40logger.%30.30M){cyan}
%clr(%5.5L)
%clr(:){faint}
%msg%n"
management
:
endpoint
:
health
:
show-details
:
always
endpoints
:
web
:
exposure
:
include
:
"
*"
optaplanner
:
solver
:
termination
:
spent-limit
:
5s
passBack/passback-master.yaml
0 → 100644
View file @
b1dbd8f6
server
:
port
:
8081
servlet
:
context-path
:
/
spring
:
datasource
:
url
:
jdbc:mysql://localhost:3306/APS?serverTimezone=UTC&allowMultiQueries=true
username
:
root
password
:
123456
driver-class-name
:
com.mysql.cj.jdbc.Driver
initialization-mode
:
always
schema
:
classpath*:sql/init.sql
druid
:
initialSize
:
5
minIdle
:
5
maxActive
:
20
maxWait
:
60000
timeBetweenEvictionRunsMillis
:
60000
minEvictableIdleTimeMillis
:
300000
validationQuery
:
SELECT 1 FROM DUAL
poolPreparedStatements
:
true
useGlobalDataSourceStat
:
true
filters
:
stat,wall
web-stat-filter
:
enabled
:
true
url-pattern
:
"
/*"
exclusions
:
"
*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"
session-stat-enable
:
true
session-stat-max-count
:
1000
stat-view-servlet
:
enabled
:
true
url-pattern
:
/druid/*
reset-enable
:
false
login-username
:
root
login-password
:
root
#通过connectProperties属性来打开mergeSql功能;慢SQL记录
connectionProperties
:
druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
jpa
:
database
:
MYSQL
show-sql
:
true
properties
:
hibernate
:
dialect
:
org.hibernate.dialect.MySQLDialect
hibernate
:
ddl-auto
:
update
naming
:
physical-strategy
:
org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
logging
:
level
:
root
:
info
pattern
:
console
:
"
%clr(%d{yyyy-MM-dd
HH:mm:ss}){faint}
%clr(${LOG_LEVEL_PATTERN:-%5p})
%clr(-){faint}
%clr([%14.14t]){faint}
%clr(%-40.40logger.%30.30M){cyan}
%clr(%5.5L)
%clr(:){faint}
%msg%n"
management
:
endpoint
:
health
:
show-details
:
always
endpoints
:
web
:
exposure
:
include
:
"
*"
optaplanner
:
solver
:
termination
:
spent-limit
:
5s
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