## 改依赖 将eureka-client依赖替换alibaba服务发现组件 ![](https://img.kancloud.cn/3d/4e/3d4ec4f05df155d93e0d5e82743d75da_1907x463.png) ![](https://img.kancloud.cn/95/bb/95bb2f20c842a03a9ded5770ad44aaed_1505x399.png) ## 改配置 ![](https://img.kancloud.cn/c1/39/c13933e82c18954a76c4edf52f9327b3_1574x312.png) ![](https://img.kancloud.cn/b5/58/b55867e58889870b85f9a7b8e45d92ae_1916x491.png) ![](https://img.kancloud.cn/f8/ed/f8edbe5f69100bb821247bbca2e22384_1920x534.png) api-gateway.yaml ``` #端口 server: port: 9200 #metrics management: endpoints: web: exposure: include: "*" endpoint: health: show-details: always spring: cloud: sentinel: # 指定sentinel 控制台的地址 dashboard: 127.0.0.1:8080 zuul: enabled: true order: pre: 10000 post: 1000 error: -1 filter: enabled: true datasource: # 名称随意 flow: nacos: server-addr: 119.27.173.249:8848 dataId: ${spring.application.name}-sentinel-gw-flow groupId: SENTINEL_GROUP # 规则类型,取值见: # com.alibaba.cloud.sentinel.datasource.RuleType rule-type: gw-flow api: nacos: server-addr: 119.27.173.249:8848 dataId: ${spring.application.name}-sentinel-gw-api-group groupId: SENTINEL_GROUP # 规则类型,取值见: # com.alibaba.cloud.sentinel.datasource.RuleType rule-type: gw-api-group datasource: dynamic: enable: true druid: # JDBC 配置(驱动类自动从url的mysql识别,数据源类型自动识别) core: url: jdbc:mysql://59.110.164.254:3306/oauth-center?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false username: root password: root driver-class-name: com.mysql.cj.jdbc.Driver log: url: jdbc:mysql://59.110.164.254:3306/log-center?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false username: root password: root driver-class-name: com.mysql.cj.jdbc.Driver #连接池配置(通常来说,只需要修改initialSize、minIdle、maxActive initial-size: 1 max-active: 20 min-idle: 1 # 配置获取连接等待超时的时间 max-wait: 60000 #打开PSCache,并且指定每个连接上PSCache的大小 pool-prepared-statements: true max-pool-prepared-statement-per-connection-size: 20 validation-query: SELECT 'x' test-on-borrow: false test-on-return: false test-while-idle: true #配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 time-between-eviction-runs-millis: 60000 #配置一个连接在池中最小生存的时间,单位是毫秒 min-evictable-idle-time-millis: 300000 filters: stat,wall # WebStatFilter配置,说明请参考Druid Wiki,配置_配置WebStatFilter #是否启用StatFilter默认值true web-stat-filter.enabled: true web-stat-filter.url-pattern: /* web-stat-filter.exclusions: "*.js , *.gif ,*.jpg ,*.png ,*.css ,*.ico , /druid/*" web-stat-filter.session-stat-max-count: 1000 web-stat-filter.profile-enable: true # StatViewServlet配置 #展示Druid的统计信息,StatViewServlet的用途包括:1.提供监控信息展示的html页面2.提供监控信息的JSON API #是否启用StatViewServlet默认值true stat-view-servlet.enabled: true #根据配置中的url-pattern来访问内置监控页面,如果是上面的配置,内置监控页面的首页是/druid/index.html例如: #http://110.76.43.235:9000/druid/index.html #http://110.76.43.235:8080/mini-web/druid/index.html stat-view-servlet.url-pattern: /druid/* #允许清空统计数据 stat-view-servlet.reset-enable: true stat-view-servlet.login-username: admin stat-view-servlet.login-password: admin #StatViewSerlvet展示出来的监控信息比较敏感,是系统运行的内部情况,如果你需要做访问控制,可以配置allow和deny这两个参数 #deny优先于allow,如果在deny列表中,就算在allow列表中,也会被拒绝。如果allow没有配置或者为空,则允许所有访问 #配置的格式 #<IP> #或者<IP>/<SUB_NET_MASK_size>其中128.242.127.1/24 #24表示,前面24位是子网掩码,比对的时候,前面24位相同就匹配,不支持IPV6。 #stat-view-servlet.allow= #stat-view-servlet.deny=128.242.127.1/24,128.242.128.1 # Spring监控配置,说明请参考Druid Github Wiki,配置_Druid和Spring关联监控配置 #aop-patterns= # Spring监控AOP切入点,如x.y.z.service.*,配置多个英文逗号分隔 ################### mysq end ########################## # zipkin: # base-url: http://127.0.0.1:11008 redis: ################### redis 单机版 start ########################## host: 59.110.164.254 port: 6379 timeout: 6000 database: 8 lettuce: pool: max-active: -1 # 连接池最大连接数(使用负值表示没有限制),如果赋值为-1,则表示不限制;如果pool已经分配了maxActive个jedis实例,则此时pool的状态为exhausted(耗尽) max-idle: 8 # 连接池中的最大空闲连接 ,默认值也是8 max-wait: -1 # # 等待可用连接的最大时间,单位毫秒,默认值为-1,表示永不超时。如果超过等待时间,则直接抛出JedisConnectionException min-idle: 2 # 连接池中的最小空闲连接 ,默认值也是0 shutdown-timeout: 100ms ################### redis 单机版 end ########################## # cluster: # nodes: 130.75.131.237:7000,130.75.131.238:7000,130.75.131.239:7000,130.75.131.237:7001,130.75.131.238:7001,130.75.131.239:7001 # #130.75.131.237:7000,130.75.131.238:7000,130.75.131.239:7000,130.75.131.237:7001,130.75.131.238:7001,130.75.131.239:7001 # #192.168.3.157:7000,192.168.3.158:7000,192.168.3.159:7000,192.168.3.157:7001,192.168.3.158:7001,192.168.3.159:7001 # timeout: 1000 # 连接超时时间(毫秒) # lettuce: # pool: # max-active: 10 # 连接池最大连接数(使用负值表示没有限制),如果赋值为-1,则表示不限制;如果pool已经分配了maxActive个jedis实例,则此时pool的状态为exhausted(耗尽) # max-idle: 8 # 连接池中的最大空闲连接 ,默认值也是8 # max-wait: 100 # # 等待可用连接的最大时间,单位毫秒,默认值为-1,表示永不超时。如果超过等待时间,则直接抛出JedisConnectionException # min-idle: 2 # 连接池中的最小空闲连接 ,默认值也是0 # shutdown-timeout: 100ms #mybatis: mybatis-plus: configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl config-location: classpath:mybatis.cfg.xml mapper-locations: classpath*:com/open/**/dao/*.xml security: oauth2: ignored: /api-file/statics/** , /test163/** , /api-auth/** , /doc.html ,/test111 ,/api-user/users-anon/login, /api-user/users/save, /user-center/users-anon/login,/document.html,**/v2/api-docs,/oauth/** ,/login.html ,/user/login,/**/**.css ,/**/**.js ,/getVersion token: store: type: redis #设置最大超时时间 ribbon: ServerListRefreshInterval: 10 #刷新服务列表源的间隔时间 httpclient: enabled: false okhttp: enabled: true ReadTimeout: 90000 ConnectTimeout: 90000 OkToRetryOnAllOperations: true MaxAutoRetries: 1 MaxAutoRetriesNextServer: 1 #设置最大容错超时时间 hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 90000 #设置最大容错超时时间 hystrix: threadpool: default: coreSize: 100 maximumSize: 5000 allowMaximumSizeToDivergeFromCoreSize: true maxQueueSize: -1 command: default: circuitBreaker: foreOpen: false execution: timeout: enabled: true isolation: thread: timeoutInMilliseconds: 900000 zuul: ribbon-isolation-strategy: thread # 提高吞吐量 host: max-per-route-connections: 60000 # 适用于ApacheHttpClient,如果是okhttp无效。每个服务的http客户端连接池最大连接,默认是200 max-total-connections: 60000 # 适用于ApacheHttpClient,如果是okhttp无效。每个route可用的最大连接数,默认值是20 ribbon: eager-load: enabled: true threadPool: useSeparateThreadPools: true threadPoolKeyPrefix: api-gateway include: debug: header: true debug: request: true parameter: debugRequest retryable: false #关闭重试 sensitive-headers: #/oauth/token需要请求头处理 ignored-headers: Access-Control-Allow-Credentials,Access-Control-Allow-Origin,Access-Control-Allow-Methods add-host-header: true # add-proxy-headers: true #授权码跳转问题 routes: # 演示配置 # baidu: # path: /test163/** # url: http://59.110.164.254:9999 auth: path: /api-auth/** service-id: auth-server strip-prefix: false custom-sensitive-headers: true #http://blog.didispace.com/spring-cloud-zuul-cookie-redirect/ zuul授权码跳转问题 user: path: /api-user/** service-id: user-center strip-prefix: true custom-sensitive-headers: true #http://blog.didispace.com/spring-cloud-zuul-cookie-redirect/ zuul授权码跳转问题 file: path: /api-file/** service-id: file-center strip-prefix: true sms: path: /api-sms/** service-id: sms-center strip-prefix: true generator: path: /api-generator/** service-id: generator-center strip-prefix: true log: path: /api-log/** service-id: log-center strip-prefix: true ssl-hostname-validation-enabled: false ratelimit: enabled: false #默认不限流 repository: REDIS policy-list: user: - limit: 10 refresh-interval: 60 type: - origin auth: - limit: 10 refresh-interval: 60 type: - origin file: - limit: 10 refresh-interval: 60 type: - origin log: - limit: 10 refresh-interval: 60 type: - origin #swagger: # butler: # api-docs-path: /v2/api-docs # swagger-version: 2.0 # resources: # auth: # name: auth-server # api-docs-path: /auth/v2/api-docs # swagger-version: 2.0 # client: # name: eureka-client # api-docs-path: /client/v2/api-docs # swagger-version: 2.0 # auth_client: # name: auth-client # api-docs-path: /auth-client/v2/api-docs # swagger-version: 2.0 swagger: butler: api-docs-path: v2/api-docs auto-generate-from-zuul-routes: true # generate-routes: auth-server, auth-client logging: level: com.open.capacity: INFO org.hibernate: INFO org.hibernate.type.descriptor.sql.BasicBinder: TRACE org.hibernate.type.descriptor.sql.BasicExtractor: TRACE ``` ## 启动 ``` [api-gateway:130.75.131.208:0000] [,] 2019-04-14 10:53:07.160 INFO 3664 [main] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$e2645beb] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.1.3.RELEASE) [api-gateway:130.75.131.208:0000] [,] 2019-04-14 10:53:09.688 INFO 3664 [main] com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder Loading nacos data, dataId: 'common.yaml', group: 'DEFAULT_GROUP' [api-gateway:130.75.131.208:0000] [,] 2019-04-14 10:53:09.848 INFO 3664 [main] com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder Loading nacos data, dataId: 'api-gateway.yaml', group: 'DEFAULT_GROUP' [api-gateway:130.75.131.208:0000] [,] 2019-04-14 10:53:09.885 INFO 3664 [main] org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration Located property source: CompositePropertySource {name='NACOS', propertySources=[NacosPropertySource {name='api-gateway.yaml'}, NacosPropertySource {name='common.yaml'}]} [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:10.208 INFO 3664 [main] com.open.capacity.GatewayApp No active profile set, falling back to default profiles: default [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:11.871 WARN 3664 [main] org.springframework.cloud.commons.util.SpringFactoryImportSelector More than one implementation of @EnableCircuitBreaker (now relying on @Conditionals to pick one): [org.springframework.cloud.netflix.hystrix.HystrixCircuitBreakerConfiguration, com.alibaba.cloud.sentinel.custom.SentinelCircuitBreakerConfiguration] [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:11.877 WARN 3664 [main] org.springframework.cloud.commons.util.SpringFactoryImportSelector More than one implementation of @EnableCircuitBreaker (now relying on @Conditionals to pick one): [org.springframework.cloud.netflix.hystrix.HystrixCircuitBreakerConfiguration, com.alibaba.cloud.sentinel.custom.SentinelCircuitBreakerConfiguration] [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:14.602 WARN 3664 [main] org.springframework.boot.actuate.endpoint.EndpointId Endpoint ID 'nacos-config' contains invalid characters, please migrate to a valid format. [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:14.610 WARN 3664 [main] org.springframework.boot.actuate.endpoint.EndpointId Endpoint ID 'nacos-discovery' contains invalid characters, please migrate to a valid format. [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:15.997 INFO 3664 [main] org.springframework.data.repository.config.RepositoryConfigurationDelegate Multiple Spring Data modules found, entering strict repository configuration mode! [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:16.005 INFO 3664 [main] org.springframework.data.repository.config.RepositoryConfigurationDelegate Bootstrapping Spring Data repositories in DEFAULT mode. [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:16.291 INFO 3664 [main] org.springframework.data.repository.config.RepositoryConfigurationDelegate Finished Spring Data repository scanning in 250ms. Found 0 repository interfaces. [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:16.735 WARN 3664 [main] org.springframework.boot.actuate.endpoint.EndpointId Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format. [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:16.902 WARN 3664 [main] org.springframework.boot.actuate.endpoint.EndpointId Endpoint ID 'hystrix.stream' contains invalid characters, please migrate to a valid format. [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:18.314 INFO 3664 [main] org.springframework.cloud.context.scope.GenericScope BeanFactory id=b36e4b15-ca38-3e60-887b-18eac8bfc5f5 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:18.371 INFO 3664 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Post-processing PropertySource instances [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:18.457 INFO 3664 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource bootstrapProperties [org.springframework.core.env.CompositePropertySource] to EncryptableEnumerablePropertySourceWrapper [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:18.611 INFO 3664 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource configurationProperties [org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource] to AOP Proxy [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:18.612 INFO 3664 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource commandLineArgs [org.springframework.core.env.SimpleCommandLinePropertySource] to EncryptableEnumerablePropertySourceWrapper [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:18.612 INFO 3664 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource servletConfigInitParams [org.springframework.core.env.PropertySource$StubPropertySource] to EncryptablePropertySourceWrapper [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:18.612 INFO 3664 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource servletContextInitParams [org.springframework.core.env.PropertySource$StubPropertySource] to EncryptablePropertySourceWrapper [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:18.620 INFO 3664 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource systemProperties [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:18.621 INFO 3664 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource systemEnvironment [org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor$OriginAwareSystemEnvironmentPropertySource] to EncryptableMapPropertySourceWrapper [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:18.621 INFO 3664 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource random [org.springframework.boot.env.RandomValuePropertySource] to EncryptablePropertySourceWrapper [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:18.621 INFO 3664 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource applicationConfig: [classpath:/application.properties] [org.springframework.boot.env.OriginTrackedMapPropertySource] to EncryptableMapPropertySourceWrapper [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:18.621 INFO 3664 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource springCloudClientHostInfo [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:18.622 INFO 3664 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource applicationConfig: [classpath:/bootstrap.yml] [org.springframework.boot.env.OriginTrackedMapPropertySource] to EncryptableMapPropertySourceWrapper [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:18.622 INFO 3664 [main] com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor Converting PropertySource defaultProperties [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:20.594 INFO 3664 [main] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$c64a58ee] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:20.758 INFO 3664 [main] com.ulisesbocchio.jasyptspringboot.resolver.DefaultLazyPropertyResolver Property Resolver custom Bean not found with name 'encryptablePropertyResolver'. Initializing Default Property Resolver [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:20.762 INFO 3664 [main] com.ulisesbocchio.jasyptspringboot.detector.DefaultLazyPropertyDetector Property Detector custom Bean not found with name 'encryptablePropertyDetector'. Initializing Default Property Detector [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:21.217 INFO 3664 [main] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker Bean 'spring.cloud.sentinel-com.alibaba.cloud.sentinel.SentinelProperties' of type [com.alibaba.cloud.sentinel.SentinelProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:21.709 INFO 3664 [main] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker Bean 'com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration' of type [com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration$$EnhancerBySpringCGLIB$$e9f1c6cb] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:21.862 INFO 3664 [main] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$e2645beb] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:23.642 WARN 3664 [main] io.undertow.websockets.jsr UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:23.762 INFO 3664 [main] io.undertow.servlet Initializing Spring embedded WebApplicationContext [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:23.762 INFO 3664 [main] org.springframework.web.context.ContextLoader Root WebApplicationContext: initialization completed in 13454 ms [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:23.842 WARN 3664 [main] com.netflix.config.sources.URLConfigurationSource No URLs will be polled as dynamic configuration sources. [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:23.842 INFO 3664 [main] com.netflix.config.sources.URLConfigurationSource To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:23.902 INFO 3664 [main] com.netflix.config.DynamicPropertyFactory DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@1bb172dd [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:24.217 INFO 3664 [main] com.alibaba.cloud.sentinel.SentinelWebAutoConfiguration [Sentinel Starter] register Sentinel CommonFilter with urlPatterns: [/*]. [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:36.200 INFO 3664 [main] com.alibaba.nacos.client.naming initializer namespace from System Property :null [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:36.206 INFO 3664 [main] com.alibaba.nacos.client.naming initializer namespace from System Environment :null [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:36.208 INFO 3664 [main] com.alibaba.nacos.client.naming initializer namespace from System Property :null [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:36.930 INFO 3664 [main] org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar Registered '/actuator/hystrix.stream' to hystrix.stream-actuator-endpoint Logging initialized using 'class org.apache.ibatis.logging.stdout.StdOutImpl' adapter. _ _ |_ _ _|_. ___ _ | _ | | |\/|_)(_| | |_\ |_)||_|_\ / | 3.0.6 Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary. [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:38.333 INFO 3664 [main] com.alibaba.druid.pool.DruidDataSource {dataSource-1} inited Logging initialized using 'class org.apache.ibatis.logging.stdout.StdOutImpl' adapter. [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:42.516 INFO 3664 [main] org.springframework.boot.actuate.endpoint.web.EndpointLinksResolver Exposing 26 endpoint(s) beneath base path '/actuator' [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:43.245 INFO 3664 [main] springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity<springfox.documentation.spring.web.json.Json> springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)] [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:45.195 WARN 3664 [main] com.netflix.config.sources.URLConfigurationSource No URLs will be polled as dynamic configuration sources. [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:45.195 INFO 3664 [main] com.netflix.config.sources.URLConfigurationSource To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:45.854 INFO 3664 [main] org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor Initializing ExecutorService 'applicationTaskExecutor' [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:46.823 INFO 3664 [main] org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler Initializing ExecutorService [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:49.143 INFO 3664 [main] org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration Using generated security password: 14693f9f-9883-41aa-b9f0-9256aa0013f9 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:49.737 INFO 3664 [main] org.springframework.security.web.DefaultSecurityFilterChain Creating filter chain: any request, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@7d018c58, org.springframework.security.web.context.SecurityContextPersistenceFilter@4fbdee7a, org.springframework.security.web.header.HeaderWriterFilter@3d9c69f8, org.springframework.security.web.authentication.logout.LogoutFilter@42eaf47f, org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter@a15e3c1, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@1300112e, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@7ae75ba6, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@6a2b6031, org.springframework.security.web.session.SessionManagementFilter@29390110, org.springframework.security.web.access.ExceptionTranslationFilter@689fe2a3, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@22bbbe6] [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:51.453 INFO 3664 [main] org.springframework.cloud.netflix.zuul.ZuulFilterInitializer Starting filter initializer [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.125 INFO 3664 [main] springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper Context refreshed [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.206 INFO 3664 [main] springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper Found 1 custom documentation plugin(s) [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.319 INFO 3664 [main] springfox.documentation.spring.web.scanners.ApiListingReferenceScanner Scanning for api listing references [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.884 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_1 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.887 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_2 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.890 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_3 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.894 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_4 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.897 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingDELETE_1 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.905 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_5 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.913 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_6 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.916 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_7 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.919 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_8 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.924 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingDELETE_2 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.927 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_9 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.930 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_10 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.941 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_11 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.943 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_12 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.945 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_13 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.948 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_14 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.959 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_15 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.963 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_16 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.967 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_17 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.970 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingPOST_1 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.973 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_18 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.976 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_19 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.978 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_20 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.980 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_21 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.983 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_22 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.985 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_23 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.987 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_24 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.989 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingPOST_2 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.992 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_25 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:52.998 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_26 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:53.003 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingPOST_3 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:53.005 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_27 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:53.008 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_28 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:53.011 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingPOST_4 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:53.013 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_29 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:53.015 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: handleUsingGET_30 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:53.196 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: userUsingGET_1 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:53.204 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: userUsingHEAD_1 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:53.211 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: userUsingPOST_1 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:53.216 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: userUsingPUT_1 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:53.223 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: userUsingPATCH_1 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:53.258 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: userUsingDELETE_1 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:53.264 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: userUsingOPTIONS_1 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:53.279 INFO 3664 [main] springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator Generating unique operation named: userUsingTRACE_1 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:53.533 INFO 3664 [main] org.xnio XNIO version 3.3.8.Final [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:53.576 INFO 3664 [main] org.xnio.nio XNIO NIO Implementation Version 3.3.8.Final [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:53.780 INFO 3664 [main] org.springframework.boot.web.embedded.undertow.UndertowServletWebServer Undertow started on port(s) 9200 (http) with context path '' [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:53.796 INFO 3664 [main] com.alibaba.nacos.client.naming [BEAT] adding beat: {"cluster":"DEFAULT","ip":"130.75.131.208","metadata":{"preserved.register.source":"SPRING_CLOUD"},"period":5000,"port":9200,"scheduled":false,"serviceName":"DEFAULT_GROUP@@api-gateway","stopped":false,"weight":1.0} to beat map. [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:53.849 INFO 3664 [main] com.alibaba.nacos.client.naming [REGISTER-SERVICE] 95a4a445-f548-4c0d-98fc-a471454dabec registering service DEFAULT_GROUP@@api-gateway with instance: {"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"ip":"130.75.131.208","ipDeleteTimeout":30000,"metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":9200,"weight":1.0} [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:53.949 INFO 3664 [main] com.alibaba.cloud.nacos.registry.NacosServiceRegistry nacos registry, api-gateway 130.75.131.208:9200 register finished [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:54.035 INFO 3664 [main] com.open.capacity.GatewayApp Started GatewayApp in 51.982 seconds (JVM running for 54.566) [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:54.049 INFO 3664 [main] com.alibaba.nacos.client.config.impl.ClientWorker [fixed-119.27.173.249_8848-95a4a445-f548-4c0d-98fc-a471454dabec] [subscribe] api-gateway.yaml+DEFAULT_GROUP+95a4a445-f548-4c0d-98fc-a471454dabec [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:54.050 INFO 3664 [main] com.alibaba.nacos.client.config.impl.CacheData [fixed-119.27.173.249_8848-95a4a445-f548-4c0d-98fc-a471454dabec] [add-listener] ok, tenant=95a4a445-f548-4c0d-98fc-a471454dabec, dataId=api-gateway.yaml, group=DEFAULT_GROUP, cnt=1 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:54.052 INFO 3664 [main] com.alibaba.nacos.client.config.impl.ClientWorker [fixed-119.27.173.249_8848-95a4a445-f548-4c0d-98fc-a471454dabec] [subscribe] common.yaml+DEFAULT_GROUP+95a4a445-f548-4c0d-98fc-a471454dabec [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:54.052 INFO 3664 [main] com.alibaba.nacos.client.config.impl.CacheData [fixed-119.27.173.249_8848-95a4a445-f548-4c0d-98fc-a471454dabec] [add-listener] ok, tenant=95a4a445-f548-4c0d-98fc-a471454dabec, dataId=common.yaml, group=DEFAULT_GROUP, cnt=1 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:54.894 INFO 3664 [main] com.netflix.config.ChainedDynamicProperty Flipping property: auth-server.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:55.017 INFO 3664 [main] com.netflix.loadbalancer.BaseLoadBalancer Client: auth-server instantiated a LoadBalancer: DynamicServerListLoadBalancer:{NFLoadBalancer:name=auth-server,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:55.038 INFO 3664 [main] com.netflix.loadbalancer.DynamicServerListLoadBalancer Using serverListUpdater PollingServerListUpdater [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:55.182 INFO 3664 [main] com.alibaba.nacos.client.naming new ips(1) service: DEFAULT_GROUP@@auth-server -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"instanceId":"130.75.131.208#8000#DEFAULT#DEFAULT_GROUP@@auth-server","ip":"130.75.131.208","ipDeleteTimeout":30000,"metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":8000,"serviceName":"DEFAULT_GROUP@@auth-server","weight":1.0}] [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:55.195 INFO 3664 [main] com.alibaba.nacos.client.naming current ips:(1) service: DEFAULT_GROUP@@auth-server -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"instanceId":"130.75.131.208#8000#DEFAULT#DEFAULT_GROUP@@auth-server","ip":"130.75.131.208","ipDeleteTimeout":30000,"metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":8000,"serviceName":"DEFAULT_GROUP@@auth-server","weight":1.0}] [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:55.227 INFO 3664 [main] com.netflix.config.ChainedDynamicProperty Flipping property: auth-server.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:55.232 INFO 3664 [main] com.netflix.loadbalancer.DynamicServerListLoadBalancer DynamicServerListLoadBalancer for client auth-server initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=auth-server,current list of Servers=[130.75.131.208:8000],Load balancer stats=Zone stats: {unknown=[Zone:unknown; Instance count:1; Active connections count: 0; Circuit breaker tripped count: 0; Active connections per server: 0.0;] },Server stats: [[Server:130.75.131.208:8000; Zone:UNKNOWN; Total Requests:0; Successive connection failure:0; Total blackout seconds:0; Last connection made:Thu Jan 01 08:00:00 GMT+08:00 1970; First connection made: Thu Jan 01 08:00:00 GMT+08:00 1970; Active Connections:0; total failure count in last (1000) msecs:0; average resp time:0.0; 90 percentile resp time:0.0; 95 percentile resp time:0.0; min resp time:0.0; max resp time:0.0; stddev resp time:0.0] ]}ServerList:com.alibaba.cloud.nacos.ribbon.NacosServerList@69e346b3 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:55.479 INFO 3664 [main] com.netflix.config.ChainedDynamicProperty Flipping property: user-center.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:55.482 INFO 3664 [main] com.netflix.loadbalancer.BaseLoadBalancer Client: user-center instantiated a LoadBalancer: DynamicServerListLoadBalancer:{NFLoadBalancer:name=user-center,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:55.484 INFO 3664 [main] com.netflix.loadbalancer.DynamicServerListLoadBalancer Using serverListUpdater PollingServerListUpdater [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:55.563 INFO 3664 [main] com.alibaba.nacos.client.naming new ips(1) service: DEFAULT_GROUP@@user-center -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"instanceId":"130.75.131.208#7000#DEFAULT#DEFAULT_GROUP@@user-center","ip":"130.75.131.208","ipDeleteTimeout":30000,"metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":7000,"serviceName":"DEFAULT_GROUP@@user-center","weight":1.0}] [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:55.566 INFO 3664 [main] com.alibaba.nacos.client.naming current ips:(1) service: DEFAULT_GROUP@@user-center -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"instanceId":"130.75.131.208#7000#DEFAULT#DEFAULT_GROUP@@user-center","ip":"130.75.131.208","ipDeleteTimeout":30000,"metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":7000,"serviceName":"DEFAULT_GROUP@@user-center","weight":1.0}] [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:55.580 INFO 3664 [main] com.netflix.config.ChainedDynamicProperty Flipping property: user-center.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:55.582 INFO 3664 [main] com.netflix.loadbalancer.DynamicServerListLoadBalancer DynamicServerListLoadBalancer for client user-center initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=user-center,current list of Servers=[130.75.131.208:7000],Load balancer stats=Zone stats: {unknown=[Zone:unknown; Instance count:1; Active connections count: 0; Circuit breaker tripped count: 0; Active connections per server: 0.0;] },Server stats: [[Server:130.75.131.208:7000; Zone:UNKNOWN; Total Requests:0; Successive connection failure:0; Total blackout seconds:0; Last connection made:Thu Jan 01 08:00:00 GMT+08:00 1970; First connection made: Thu Jan 01 08:00:00 GMT+08:00 1970; Active Connections:0; total failure count in last (1000) msecs:0; average resp time:0.0; 90 percentile resp time:0.0; 95 percentile resp time:0.0; min resp time:0.0; max resp time:0.0; stddev resp time:0.0] ]}ServerList:com.alibaba.cloud.nacos.ribbon.NacosServerList@52813ba4 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:55.762 INFO 3664 [main] com.netflix.config.ChainedDynamicProperty Flipping property: sms-center.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:55.765 INFO 3664 [main] com.netflix.loadbalancer.BaseLoadBalancer Client: sms-center instantiated a LoadBalancer: DynamicServerListLoadBalancer:{NFLoadBalancer:name=sms-center,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:55.767 INFO 3664 [main] com.netflix.loadbalancer.DynamicServerListLoadBalancer Using serverListUpdater PollingServerListUpdater [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:55.859 INFO 3664 [main] com.alibaba.nacos.client.naming current ips:(0) service: DEFAULT_GROUP@@sms-center -> [] [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:55.860 INFO 3664 [main] com.netflix.loadbalancer.DynamicServerListLoadBalancer DynamicServerListLoadBalancer for client sms-center initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=sms-center,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:com.alibaba.cloud.nacos.ribbon.NacosServerList@7e5b449c [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:56.097 INFO 3664 [PollingServerListUpdater-0] com.netflix.config.ChainedDynamicProperty Flipping property: auth-server.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:56.111 INFO 3664 [main] com.netflix.config.ChainedDynamicProperty Flipping property: file-center.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:56.122 INFO 3664 [main] com.netflix.loadbalancer.BaseLoadBalancer Client: file-center instantiated a LoadBalancer: DynamicServerListLoadBalancer:{NFLoadBalancer:name=file-center,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:56.125 INFO 3664 [main] com.netflix.loadbalancer.DynamicServerListLoadBalancer Using serverListUpdater PollingServerListUpdater [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:56.214 INFO 3664 [main] com.alibaba.nacos.client.naming current ips:(0) service: DEFAULT_GROUP@@file-center -> [] [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:56.215 INFO 3664 [main] com.netflix.loadbalancer.DynamicServerListLoadBalancer DynamicServerListLoadBalancer for client file-center initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=file-center,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:com.alibaba.cloud.nacos.ribbon.NacosServerList@7734695d [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:56.290 INFO 3664 [com.alibaba.nacos.client.naming.updater] com.alibaba.nacos.client.naming current ips:(1) service: DEFAULT_GROUP@@auth-server -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"instanceId":"130.75.131.208#8000#DEFAULT#DEFAULT_GROUP@@auth-server","ip":"130.75.131.208","ipDeleteTimeout":30000,"metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":8000,"serviceName":"DEFAULT_GROUP@@auth-server","weight":1.0}] [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:56.409 INFO 3664 [main] com.netflix.config.ChainedDynamicProperty Flipping property: generator-center.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:56.422 INFO 3664 [main] com.netflix.loadbalancer.BaseLoadBalancer Client: generator-center instantiated a LoadBalancer: DynamicServerListLoadBalancer:{NFLoadBalancer:name=generator-center,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:56.425 INFO 3664 [main] com.netflix.loadbalancer.DynamicServerListLoadBalancer Using serverListUpdater PollingServerListUpdater [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:56.486 INFO 3664 [PollingServerListUpdater-0] com.netflix.config.ChainedDynamicProperty Flipping property: user-center.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:56.512 INFO 3664 [main] com.alibaba.nacos.client.naming current ips:(0) service: DEFAULT_GROUP@@generator-center -> [] [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:56.512 INFO 3664 [main] com.netflix.loadbalancer.DynamicServerListLoadBalancer DynamicServerListLoadBalancer for client generator-center initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=generator-center,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:com.alibaba.cloud.nacos.ribbon.NacosServerList@795d43d9 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:56.665 INFO 3664 [com.alibaba.nacos.client.naming.updater] com.alibaba.nacos.client.naming current ips:(1) service: DEFAULT_GROUP@@user-center -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"instanceId":"130.75.131.208#7000#DEFAULT#DEFAULT_GROUP@@user-center","ip":"130.75.131.208","ipDeleteTimeout":30000,"metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":7000,"serviceName":"DEFAULT_GROUP@@user-center","weight":1.0}] [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:56.674 INFO 3664 [main] com.netflix.config.ChainedDynamicProperty Flipping property: log-center.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:56.680 INFO 3664 [main] com.netflix.loadbalancer.BaseLoadBalancer Client: log-center instantiated a LoadBalancer: DynamicServerListLoadBalancer:{NFLoadBalancer:name=log-center,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:56.682 INFO 3664 [main] com.netflix.loadbalancer.DynamicServerListLoadBalancer Using serverListUpdater PollingServerListUpdater [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:56.776 INFO 3664 [main] com.alibaba.nacos.client.naming current ips:(0) service: DEFAULT_GROUP@@log-center -> [] [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:56.777 INFO 3664 [main] com.netflix.loadbalancer.DynamicServerListLoadBalancer DynamicServerListLoadBalancer for client log-center initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=log-center,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:com.alibaba.cloud.nacos.ribbon.NacosServerList@46244e65 [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:56.953 INFO 3664 [com.alibaba.nacos.client.naming.updater] com.alibaba.nacos.client.naming current ips:(0) service: DEFAULT_GROUP@@sms-center -> [] [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:57.315 INFO 3664 [com.alibaba.nacos.client.naming.updater] com.alibaba.nacos.client.naming current ips:(0) service: DEFAULT_GROUP@@file-center -> [] [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:57.604 INFO 3664 [com.alibaba.nacos.client.naming.updater] com.alibaba.nacos.client.naming current ips:(0) service: DEFAULT_GROUP@@generator-center -> [] [api-gateway:130.75.131.208:9200] [,] 2019-04-14 10:53:57.855 INFO 3664 [com.alibaba.nacos.client.naming.updater] com.alibaba.nacos.client.naming current ips:(0) service: DEFAULT_GROUP@@log-center -> [] ``` ![](https://img.kancloud.cn/52/ac/52ac66096943db38f9637bc39861d008_1920x506.png) ## api-gateway 内部原理请参考03.模块详解部分