
Spring
lewee0215
愿时间慢,愿好日子长...
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Spring - AOP 之 cglib 实现原理
AOP - CGLIB https://blog.youkuaiyun.com/yhl_jxy/article/details/80633194 import net.sf.cglib.core.DebuggingClassWriter; import net.sf.cglib.proxy.Enhancer; public class Client { public static void main(String[] args) { // 代理类class文件存入本地磁盘方便我们反编译查看源码原创 2021-01-25 00:25:32 · 316 阅读 · 0 评论 -
SpringCloud - @RefreshScope 原理及使用
Spring Cloud @RefreshScope 原理及使用 https://www.cnblogs.com/javastack/p/12049139.html RefreshScope(org.springframework.cloud.context.scope.refresh)是spring cloud提供的一种特殊的scope实现,用来实现配置、实例热加载 Singleton和Prototype是硬编码的,并不是Scope子类。 Scope实际上是自定义扩展的接口 protecte.原创 2021-01-06 21:47:54 · 1483 阅读 · 0 评论 -
SpringGateway - Redis限流组件之Lua脚本&Java实现
在Spring Cloud Gateway中,限流作为网关最基本的功能,Spring Cloud Gateway官方就提供了RequestRateLimiterGatewayFilterFactory这个类,适用Redis和lua脚本实现了令牌桶的方式。 具体实现逻辑在RequestRateLimiterGatewayFilterFactory类中,lua脚本在Scripts文件夹下:request_rate_limitter.lua local tokens_key = KEYS[1] local原创 2021-01-05 00:12:50 · 957 阅读 · 4 评论 -
SpringBoot - 启动流程分析
SpringBoot-spring.factories # PropertySource Loaders org.springframework.boot.env.PropertySourceLoader=\ org.springframework.boot.env.PropertiesPropertySourceLoader,\ org.springframework.boot.env.YamlPropertySourceLoader # Run Listeners org.spring.原创 2020-12-28 00:07:59 · 261 阅读 · 0 评论