莫大人

上一页 1 2 3 4 5 6 ··· 22 下一页

2021年8月4日

基于redis分布式锁注解实现

摘要: 基于redis分布式锁注解实现 1、编写注解 2、编写切面 3、如何使用 1、编写注解 import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotati 阅读全文

posted @ 2021-08-04 17:27 莫大人 阅读(796) 评论(0) 推荐(0) 编辑

2021年7月13日

自定义starter

摘要: 参看gitee https://gitee.com/laiba_yun/test20210702/blob/master/guo-starter/guo-starter.md 阅读全文

posted @ 2021-07-13 16:41 莫大人 阅读(32) 评论(0) 推荐(0) 编辑

2021年7月12日

Sentinel流控与熔断

摘要: 参考: https://thinkwon.blog.csdn.net/article/details/103770879 项目结构 com.guo ├── guo-sentinel // sentinel限流熔断学习│ └── guo-sentinel-base // [9204]消费端,限流、熔断 阅读全文

posted @ 2021-07-12 09:34 莫大人 阅读(219) 评论(0) 推荐(0) 编辑

2021年7月2日

3、nacos+springcloudgateway+knife4j集成

摘要: knife4j官方文档 nacos springcloud gateway聚合OpenApi https://doc.xiaominfo.com/knife4j/action/aggregation-cloud.html knife4j 背景 虽然swagger已经提供了UI解决方案,但存在2点不如 阅读全文

posted @ 2021-07-02 17:57 莫大人 阅读(3164) 评论(0) 推荐(0) 编辑

2021年6月28日

2、nacos

摘要: 1、Nacos官方文档的说明已经很清晰了。 https://nacos.io/zh-cn/docs/quick-start-spring-cloud.html 2、前提条件 https://nacos.io/zh-cn/docs/quick-start.html 3、下载nacos https:// 阅读全文

posted @ 2021-06-28 11:12 莫大人 阅读(86) 评论(0) 推荐(0) 编辑

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 2 3 4 5 6 ··· 22 下一页

导航