-
Notifications
You must be signed in to change notification settings - Fork 0
/
datasource-config-dev.yml
69 lines (55 loc) · 1.67 KB
/
datasource-config-dev.yml
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
spring:
datasource:
dynamic:
druid:
initial-size: 5
max-active: 10
min-idle: 1
max-wait: 60000
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 20
validation-query: SELECT 1 FROM DUAL
validation-query-timeout: 10000
test-on-borrow: true
test-on-return: false
test-while-idle: true
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 30000
filters: stat
datasource:
master:
username: root
password: 123456
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/erp?characterEncoding=utf8&useUnicode=true&useSSL=false
slave_1:
username: root
password: 123456
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/xiaoliu_local?characterEncoding=utf8&useUnicode=true&useSSL=false
slave_2:
username: root
password: 123456
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/xiaoliu_local?characterEncoding=utf8&useUnicode=true&useSSL=false
server:
port: 8095
mybatis-plus:
mapper-locations: classpath:/mapper/*Mapper.xml
typeAliasesPackage: com.xlbike.entity
global-config:
db-config:
id-type: AUTO
field-strategy: ignored
logic-delete-value: 0
logic-not-delete-value: 1
db-type: mysql
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
logging:
level:
com:
xlbike:
mapper: debug
file: /var/log/erp-vehicle_1.0.6_8095.log