Browse Source

新增gateway配置

feature/syp_workLog
yujt 5 years ago
parent
commit
7e0a0142e0
  1. 2
      pom.xml
  2. 7
      src/main/resources/application.yml

2
pom.xml

@ -240,6 +240,8 @@
<gateway.routes.epdc-points-server.uri>lb://epdc-points-server</gateway.routes.epdc-points-server.uri>
<gateway.routes.epdc-analysis-server.uri>lb://epdc-analysis-server
</gateway.routes.epdc-analysis-server.uri>
<gateway.routes.epdc-property-server.uri>lb://epdc-property-server
</gateway.routes.epdc-property-server.uri>
<!-- redis配置 -->
<spring.redis.index>0</spring.redis.index>

7
src/main/resources/application.yml

@ -195,6 +195,13 @@ spring:
- Path=${server.servlet.context-path}/analysis/**
filters:
- StripPrefix=1
- id: epdc-property-server
uri: @gateway.routes.epdc-property-server.uri@
order: 22
predicates:
- Path=${server.servlet.context-path}/property/**
filters:
- StripPrefix=1
nacos:
discovery:
server-addr: @nacos.server-addr@

Loading…
Cancel
Save