第一步:修改oauth服务application.yml文件:
spring:
application:
name: hy-base-middle-back-oauth
simple-name: hoth
hzero:
service:
admin:
name: hy-base-middle-back-admin-saas
iam:
name: hy-base-middle-back-iam-saas
swagger:
name: hy-base-middle-back-swagger
platform:
name: hy-base-middle-back-platform-saas
oauth:
name: hy-base-middle-back-oauth
interface:
name: hy-base-middle-back-interface
gateway:
name: hy-base-middle-back-gateway
第二步:修改网关服务application.yml文件
cloud:
gateway:
routes:
- id: hiam
uri: lb://hy-base-middle-back-iam-saas
predicates:
- Path=/iam/**
filters:
- StripPrefix=1
- id: hoth
uri: lb://hy-base-middle-back-oauth
predicates:
- Path=/oauth/**
filters:
- PreserveHostHeader
- id: hwgr
uri: lb://hy-base-middle-back-swagger
predicates:
- Path=/swagger/**
filters:
- StripPrefix=1
- id: hpfm
uri: lb://hy-base-middle-back-platform-saas
predicates:
- Path=/hpfm/**
filters:
- StripPrefix=1
- id: hadm
uri: lb://hy-base-middle-back-admin-saas
predicates:
- Path=/hadm/**
hzero:
service:
admin:
name: hy-base-middle-back-admin-saas
iam:
name: hy-base-middle-back-iam-saas
swagger:
name: hy-base-middle-back-swagger
platform:
name: hy-base-middle-back-platform-saas
oauth:
name: hy-base-middle-back-oauth
?第三步:修改Chart.yaml文件
?第四步:清空redis和mysql表相关数据
-- 查看service_code
select * from hzero_admin.hadm_service;
-- 查看路由表
select * from hzero_admin.hadm_service_route;
-- 删除消息记录表
select * from hzero_admin.hadm_notice_publisher;
第五步:重新启动服务,修改完成;
?
?
?
?
?
|