Explorar el Código

网关升级提交

wangzhinan hace 2 años
padre
commit
ee1002a496

+ 2 - 3
gateway/ag-basic/pom.xml

@ -78,9 +78,8 @@
            <artifactId>spring-boot-starter-security</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.security.oauth</groupId>
            <artifactId>spring-security-oauth2</artifactId>
            <version>2.4.0.RELEASE</version>
            <groupId>org.springframework.security.oauth.boot</groupId>
            <artifactId>spring-security-oauth2-autoconfigure</artifactId>
        </dependency>
        <!-- 安全认证中心-->

+ 14 - 2
gateway/ag-basic/src/main/resources/application.yml

@ -40,6 +40,9 @@ hystrix:
          thread:
            timeoutInMilliseconds: 4800000
#Ribbon
ribbon:
  ReadTimeout: 600000
@ -50,10 +53,15 @@ ribbon:
  eureka:
     enabled: true
#  sleuth:
#    sampler:
#      percentage: 1.0 #采用需要的请求的百分比 默认是0.1 即 10%
zuul:
  ribbon:
    eager-load:
      enabled: true
  retryable: true
  config-priority: false
  ignored-services: '*'
@ -117,6 +125,10 @@ zuul:
    svr-rehabilitation:
      path: /rehabilitation/**
      serviceId: svr-rehabilitation
  host:
    connect-timeout-millis: 600000
    socket-timeout-millis: 600000
endpoints:
  env:
    enabled: false
@ -438,6 +450,6 @@ spring:
     username: root
     password: 4D^tK%!4
  redis:
     host: 172.26.0.153
     port: 6379
     host: 172.26.0.253
     port: 6390
     password: Kb6wKDQP1W4

+ 1 - 0
gateway/ag-basic/src/main/resources/bootstrap.yml

@ -14,6 +14,7 @@ eureka:
      enabled: false #监控检查
    serviceUrl:
      defaultZone: http://jw:jkzl@127.0.0.1:8761/eureka/
    fetch-registry: true
  instance:
    prefer-ip-address: false
    instance-id: ${spring.cloud.client.ip-address}:${server.port}

+ 1 - 1
server/svr-authentication/src/main/resources/application.yml

@ -770,7 +770,7 @@ spring:
    username: root
    password: 4D^tK%!4
  redis:
    host: 172.26.0.153 # Redis server host.
    host: 172.26.0.253 # Redis server host.
    port: 6390 # Redis server port.
    password: Kb6wKDQP1W4