摘要: 环境:sprinboot2.3.12.RELEASE + uid-generator1.0.0 简介 UidGenerator是Java实现的, 基于Snowflake算法的唯一ID生成器。UidGenerator以组件形式工作在应用项目中, 支持自定义workerId位数和初始化策略, 从而适用于 阅读全文
posted @ 2021-07-09 13:48 FastCoder 阅读(802) 评论(0) 推荐(1) 编辑
摘要: Spring / Spring MVC / SpringBoot / SpringCloud 应用技巧,扩展点,源码解读来啦公众:Springboot实战案例锦集 阅读全文
posted @ 2021-07-09 09:28 FastCoder 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 环境:springcloud Hoxton.SR11 本节主要了解系统中的谓词与配置的路由信息是如何进行初始化关联生成路由对象的。每个谓词工厂中的Config对象又是如何被解析配置的。 所有的谓词工厂中的Config中属性值是如何被配置的。 在SpringCloud Gateway中的所有谓词工厂如 阅读全文
posted @ 2021-07-09 09:00 FastCoder 阅读(744) 评论(0) 推荐(0) 编辑
摘要: 环境:springboot2.3.9.RELEASE 1 Servlet注册 方式1: 在配置类(启动类)上添加@ServletComponentScan注解 @SpringBootApplication @ServletComponentScan public class SpringBootCo 阅读全文
posted @ 2021-07-09 08:56 FastCoder 阅读(984) 评论(0) 推荐(0) 编辑