|
|
@@ -2,11 +2,11 @@ spring: |
|
|
|
# 注册中心consul地址 |
|
|
|
cloud: |
|
|
|
consul: |
|
|
|
host: 192.168.11.242 # consul 所在服务地址 |
|
|
|
host: 172.15.1.11 # consul 所在服务地址 |
|
|
|
port: 8500 # consul 服务端口 |
|
|
|
discovery: |
|
|
|
## consul ip地址 |
|
|
|
hostname: 192.168.11.242 |
|
|
|
hostname: 172.15.1.11 |
|
|
|
# 注册到consul的服务名称 |
|
|
|
service-name: ${spring.application.name} # 服务提供者名称 |
|
|
|
instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}:${server.port} #实例ID |
|
|
@@ -21,9 +21,9 @@ spring: |
|
|
|
type: com.alibaba.druid.pool.DruidDataSource |
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver |
|
|
|
# 填写你数据库的url、登录名、密码和数据库名 |
|
|
|
url: jdbc:mysql://192.168.11.242:3306/tuoheng_oidc?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8&useSSL=true&tinyInt1isBit=false |
|
|
|
url: jdbc:mysql://rm-uf6z740323e8053pj.mysql.rds.aliyuncs.com:3306/tuoheng_oidc?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8&useSSL=true&tinyInt1isBit=false |
|
|
|
username: root |
|
|
|
password: idontcare |
|
|
|
password: TH22#2022 |
|
|
|
druid: |
|
|
|
# 连接池的配置信息 |
|
|
|
# 初始连接数 |
|
|
@@ -50,7 +50,7 @@ spring: |
|
|
|
# 缓存库默认索引0 |
|
|
|
database: 0 |
|
|
|
# Redis服务器地址 |
|
|
|
host: 192.168.11.242 |
|
|
|
host: r-uf6cdzjifj20jszykr.redis.rds.aliyuncs.com |
|
|
|
# Redis服务器连接端口 |
|
|
|
port: 6379 |
|
|
|
# Redis服务器连接密码(默认为空) |