Loading

摘要: 背景 spring Cloud Gateway是Spring Cloud推出的第二代网关框架,取代Zuul网关。提供了路由转发、权限校验、限流控制等作用。Spring Cloud Gateway 使用非阻塞 API,支持 WebSockets。 我在使用 Spring Cloud Gateway 的 阅读全文
posted @ 2024-07-31 23:15 ghimi 阅读(414) 评论(0) 推荐(0)
摘要: Spring Cloud Gateway 在 3.1.x 版本中增加了针对 gRPC 的网关代理功能支持,本片文章描述一下如何实现相关支持.本文主要基于 Spring Cloud Gateway 的 官方文档 进行一个实践练习。有兴趣的可以翻看官方文档。 由于 Grpc 是基于 HTTP2 协议进行 阅读全文
posted @ 2024-07-31 21:26 ghimi 阅读(784) 评论(0) 推荐(0)
摘要: 首先看一段代码: try (Connection connection = DriverManager.getConnection("jdbc:mysql://remote01:3306/test");) { ExecutorService executor = ThreadUtil.newExec 阅读全文
posted @ 2022-12-20 14:44 ghimi 阅读(614) 评论(0) 推荐(0)
摘要: 最近遇到一个问题,我为一张表中创建了一个唯一键,并且键中字段为NULL,最终导致了唯一约束失效。这里做下分析: 首先新建一张表,包含 work_no,name,age 三个字段: DROP TABLE IF EXISTS t_emp; CREATE TABLE t_emp( id int(8) no 阅读全文
posted @ 2022-12-19 17:13 ghimi 阅读(3210) 评论(0) 推荐(1)