forked from whgojp/JavaSecLab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication-dev.yml
More file actions
executable file
·73 lines (71 loc) · 2.8 KB
/
application-dev.yml
File metadata and controls
executable file
·73 lines (71 loc) · 2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
spring:
datasource:
primary:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:13306/JavaSecLab?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true&allowMultiQueries=true
username: root
password: QWE123qwe
druid:
initial-size: 5
min-idle: 5
max-active: 20
max-wait: 30000
validation-query: SELECT 1 FROM DUAL
test-while-idle: true
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 20
log-abandoned: true
remove-abandoned: true
secondary:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:13306/JavaSecLab?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true&allowMultiQueries=true
username: root
password: QWE123qwe
druid:
initial-size: 5
min-idle: 5
max-active: 20
max-wait: 30000
validation-query: SELECT 1 FROM DUAL
test-while-idle: true
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 20
log-abandoned: true
remove-abandoned: true
jpa:
database-platform: org.hibernate.dialect.MySQLDialect
show-sql: true
hibernate:
ddl-auto: update
properties:
hibernate:
format_sql: true
session_factory_name: sessionFactory
session_factory_name_is_jndi: false
current_session_context_class: thread
transaction:
auto_close_session: true
connection:
provider_disables_autocommit: true
generate_statistics: true
jdbc:
time_zone: UTC
session:
events:
log:
LOG_QUERIES_SLOWER_THAN_MS: 0
flush_mode: AUTO
default_schema: JavaSecLab
default_catalog: JavaSecLab
logging:
level:
root: INFO # 默认日志级别
com.alibaba.druid.pool: DEBUG # 启用 Druid 的 DEBUG 日志(排查数据库连接池问题时启用)
org.hibernate.SQL: DEBUG # 启用 Hibernate SQL 日志
org.hibernate.type.descriptor.sql.BasicBinder: TRACE # 启用 Hibernate 参数绑定日志