-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbusiness-admin-server-dev.yml
59 lines (55 loc) · 1.45 KB
/
business-admin-server-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
server:
port: 2002
redis:
cache:
expiration: 3600
spring:
#datasource: # 采用分库分表,即注释这里的数据源
#driver-class-name:
#username:
#password:
#url:
jpa:
database: MYSQL
show-sql: true
hibernate:
ddl-auto: none
naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy
properties:
hibernate:
dialect: org.hibernate.dialect.MySQL5Dialect
zipkin:
rabbitmq:
queue: zipkin
sleuth:
sampler:
percentage: 1.0 #日志记录发送给采集器的概率,配置成1全量收集日志
# 对分库分表的支持
sharding:
jdbc:
#defaultDataSourceName: #默认数据库设置
#type:
#driver-class-name:
#username:
#password:
#jdbc-url:
datasource:
names: ds
ds:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.jdbc.Driver
username: ENC(rC/X/8UBBH2bn9Tgfuu7aw==)
password: ENC(IVTzs5LDfVEsblAFWFgA9w==)
jdbc-url: jdbc:mysql://127.0.0.1:3306/fw-cloud?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
config:
sharding:
tables:
t_sys_log:
actual-data-nodes: ds.t_sys_log_${0..1}
table-strategy:
inline:
sharding-column: id
algorithm-expression: t_sys_log_${id % 2}
key-generator-column-name: id
logging:
config: classpath:logback.xml