莫大人

2021年6月21日

nacos服务注册,ClientWorker狂刷日志的问题

摘要: 日志,启动项目就疯狂的刷ClientWorker日志 配置 本身项目中配置的依赖 nacos-discovery,nacos-config版本都是2021.1,但是编译版本是1.4.1 升级nacos-client版本可解决次问题 添加依赖,版本为2.0.1。解决问题。 <!-- Alibaba N 阅读全文

posted @ 2021-06-21 17:24 莫大人 阅读(1036) 评论(0) 推荐(0) 编辑

1.4.0、组合规则

摘要: server: port: 8080 spring: application: name: gateway cloud: gateway: routes: - id: guo-system1 uri: https://www.baidu.com predicates: - Weight=group1 阅读全文

posted @ 2021-06-21 11:54 莫大人 阅读(32) 评论(0) 推荐(0) 编辑

1.3.9、通过权重 Weight匹配

摘要: server: port: 8080 spring: application: name: gateway cloud: gateway: routes: - id: guo-system1 uri: https://www.baidu.com predicates: - Weight=group1 阅读全文

posted @ 2021-06-21 11:47 莫大人 阅读(61) 评论(0) 推荐(0) 编辑

1.3.8、通过RemoteAddr匹配

摘要: server: port: 8080 spring: application: name: gateway cloud: gateway: routes: - id: guo-system4 uri: https://www.baidu.com predicates: - RemoteAddr=19 阅读全文

posted @ 2021-06-21 11:42 莫大人 阅读(114) 评论(0) 推荐(0) 编辑

1.3.7、通过QueryParam匹配

摘要: server: port: 8080 spring: application: name: gateway cloud: gateway: routes: - id: guo-system4 uri: https://www.baidu.com predicates: - Query=smile # 阅读全文

posted @ 2021-06-21 11:25 莫大人 阅读(56) 评论(0) 推荐(0) 编辑

1.3.6、通过Path匹配

摘要: server: port: 8080 spring: application: name: gateway cloud: gateway: routes: - id: guo-system4 uri: https://www.baidu.com predicates: - Path=/gateway 阅读全文

posted @ 2021-06-21 11:20 莫大人 阅读(59) 评论(0) 推荐(0) 编辑

1.3.5、通过Method匹配

摘要: server: port: 8080 spring: application: name: gateway cloud: gateway: routes: - id: guo-system4 uri: https://www.baidu.com predicates: - Path=/gateway 阅读全文

posted @ 2021-06-21 10:58 莫大人 阅读(24) 评论(0) 推荐(0) 编辑

1.3.4、通过Host匹配

摘要: server: port: 8080 spring: application: name: gateway cloud: gateway: routes: - id: guo-system4 uri: https://www.baidu.com predicates: - Path=/gateway 阅读全文

posted @ 2021-06-21 10:57 莫大人 阅读(56) 评论(0) 推荐(0) 编辑

1.3.3、通过Header属性匹配

摘要: server: port: 8080 spring: application: name: gateway cloud: gateway: routes: - id: guo-system4 uri: https://www.baidu.com predicates: - Path=/gateway 阅读全文

posted @ 2021-06-21 10:40 莫大人 阅读(43) 评论(0) 推荐(0) 编辑

1.3.2、通过Cookie匹配

摘要: server: port: 8080 spring: application: name: gateway cloud: gateway: routes: - id: guo-system4 uri: https://www.baidu.com predicates: - Path=/gateway 阅读全文

posted @ 2021-06-21 10:35 莫大人 阅读(59) 评论(0) 推荐(0) 编辑

1.3.1、datetime时间-Before、After、Between

摘要: server: port: 8080 spring: application: name: gateway cloud: gateway: routes: - id: guo-system1 uri: https://www.baidu.com predicates: - Path=/gateway 阅读全文

posted @ 2021-06-21 09:39 莫大人 阅读(193) 评论(0) 推荐(0) 编辑

导航