|
|
@@ -81,42 +81,12 @@ eureka:
|
|
81
|
81
|
|
|
82
|
82
|
spring:
|
|
83
|
83
|
profiles: locala
|
|
84
|
|
- shardingsphere:
|
|
85
|
|
- props:
|
|
86
|
|
- sql-show: true
|
|
87
|
|
- mode:
|
|
88
|
|
- type: Standalone
|
|
89
|
|
- overwrite: true
|
|
90
|
|
- repository:
|
|
91
|
|
- type: File
|
|
92
|
|
- props:
|
|
93
|
|
- path: D:/Standalone/depot-intelligent
|
|
94
|
|
- datasource:
|
|
95
|
|
- names: depot-master-01,depot-slave-01
|
|
96
|
|
- depot-master-01:
|
|
97
|
|
- type: com.zaxxer.hikari.HikariDataSource
|
|
98
|
|
- driver-class-name: com.mysql.cj.jdbc.Driver
|
|
99
|
|
- jdbc-url: jdbc:mysql://172.16.0.8:3306/depot?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
|
|
100
|
|
- username: root
|
|
101
|
|
- password: 123456
|
|
102
|
|
- depot-slave-01:
|
|
103
|
|
- type: com.zaxxer.hikari.HikariDataSource
|
|
104
|
|
- driver-class-name: com.mysql.cj.jdbc.Driver
|
|
105
|
|
- jdbc-url: jdbc:mysql://172.16.0.9:3306/depot?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
|
|
106
|
|
- username: root
|
|
107
|
|
- password: 123456
|
|
108
|
|
- rules:
|
|
109
|
|
- readwrite-splitting:
|
|
110
|
|
- data-sources:
|
|
111
|
|
- depot:
|
|
112
|
|
- type: Static
|
|
113
|
|
- props:
|
|
114
|
|
- write-data-source-name: depot-master-01
|
|
115
|
|
- read-data-source-names: depot-slave-01
|
|
116
|
|
- load-balancer-name: depot_algorithm
|
|
117
|
|
- load-balancers:
|
|
118
|
|
- depot_algorithm:
|
|
119
|
|
- type: ROUND_ROBIN
|
|
|
84
|
+ # 数据库配置
|
|
|
85
|
+ datasource:
|
|
|
86
|
+ driverClassName: com.mysql.cj.jdbc.Driver
|
|
|
87
|
+ url: jdbc:mysql://101.36.160.140:21029/depot?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8
|
|
|
88
|
+ username: root
|
|
|
89
|
+ password: 1qaz@WSX
|
|
120
|
90
|
# 缓存配置
|
|
121
|
91
|
session:
|
|
122
|
92
|
store-type: redis
|