修改代码,去除apollo、security和seata配置,替换为nacos
This commit is contained in:
@ -3,32 +3,11 @@ server:
|
||||
servlet:
|
||||
context-path: /
|
||||
|
||||
seata:
|
||||
service:
|
||||
vgroup-mapping:
|
||||
biz-service-ebtp-extend-service-group: default
|
||||
grouplist:
|
||||
default: 10.242.37.148:18035
|
||||
|
||||
#registry:
|
||||
# type: eureka
|
||||
# eureka:
|
||||
# serviceUrl: http://10.242.37.148:5001/eureka,http://10.242.37.148:5002/eureka,http://10.242.37.148:5003/eureka
|
||||
|
||||
# 对应 apollo 配置中心的应用名
|
||||
app:
|
||||
id: biz-service-ebtp-extend
|
||||
|
||||
# Apollo 配置信息
|
||||
apollo:
|
||||
meta: http://localhost:8070
|
||||
bootstrap:
|
||||
namespace: application
|
||||
enabled: true
|
||||
eagerLoad:
|
||||
enabled: true
|
||||
|
||||
spring:
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: 127.0.0.1:8848
|
||||
aop:
|
||||
auto: true #开启spring的aop配置
|
||||
proxy-target-class: true
|
||||
@ -59,7 +38,7 @@ spring:
|
||||
testOnReturn: false
|
||||
poolPreparedStatements: true
|
||||
maxOpenPreparedStatements: 20
|
||||
connection-properties: druid.stat.merggSql=ture;druid.stat.slowSqlMillis=5000
|
||||
connection-properties: druid.stat.mergeSql=ture;druid.stat.slowSqlMillis=5000
|
||||
props:
|
||||
sql:
|
||||
show: true
|
||||
@ -96,26 +75,15 @@ spring:
|
||||
# 天宫 redis 需要使用哨兵进行访问
|
||||
redis:
|
||||
sentinel:
|
||||
master: eshop-redis
|
||||
master: mymaster
|
||||
# nodes: 10.125.164.124:32718, 10.125.164.118:32716, 10.125.164.121:32716
|
||||
nodes: localhost:6379
|
||||
# password: Unicom#135
|
||||
nodes: localhost:26379, localhost:26380, localhost:26381
|
||||
password: pass
|
||||
database:
|
||||
idempotent: 1
|
||||
sharding: 1
|
||||
cache: 1
|
||||
userinfo: 1
|
||||
# 天宫Eureka配置
|
||||
eureka:
|
||||
client:
|
||||
service-url:
|
||||
# defaultZone: http://eureka-1-svc:8080/eureka, http://eureka-2-svc:8080/eureka, http://eureka-3-svc:8080/eureka
|
||||
defaultZone: http://localhost:8080/eureka/
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
instance-id: http://10.242.37.148:${server.port}
|
||||
# 这是客户端的注册地址, eureka 会通过这个地址建立管道
|
||||
ip-address: 10.242.37.148
|
||||
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
|
Reference in New Issue
Block a user