Yang Blog

「心有所向,日复一日,必有精进」

Spring boot tomcat

1 2 3 4 5 6 7 8 9 10 11 --- layout: post title: "Spring Boot Tomcat源码阅读" subtitle: " \"Spring Boot Tomcat源码阅读\"" author: "tablesheep" date: 2022-05-11 20:46:00 header-style: te...

读 Netty NioEventLoop

"读 Netty NioEventLoop"

在看完了EventLoopGroup后,接着看具体工作的类EventLoop。 EventLoop EventExecutor EventLoop接口最主要的就是继承了EventExecutor,而EventExecutor则继承了EventExecutorGroup,同时扩展了一些方法。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 ...

读 Netty NioEventLoopGroup

"读 Netty NioEventLoopGroup"

在使用Netty时,都写过下面的代码,一开始菜跟懒,根本都不了解EventLoopGroup是个什么鬼东西。 1 2 EventLoopGroup bossGroup = new NioEventLoopGroup(1); EventLoopGroup workerGroup = new NioEventLoopGroup(); EventLoopGroup 根据以下类图可以得出几个...

JVM note

"JVM note"

Note -X & -XX JVM 参数 jhsdb 逃逸分析概念

Netty note

"Netty note"

Note Netty learn Netty 粘包&拆包 Netty 设计模式

Spring Cloud RefreshScope 工作原理

"Spring Cloud RefreshScope 工作原理"

RefreshEvent刷新配置过程 偷懒一张图~~~ 翻译翻译 RefreshEventListener在接收到RefreshEvent时,会通过ContextRefresher刷新配置,使用bootstrap配置的情况下,主要看LegacyContextRefresher#updateEnvironment,它的大致逻辑就是创建一个新的ApplicationContext...

Spring Scope 工作流程

"Spring Scope 工作流程"

Spring Scope 工作流程 demo 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 @Configuration @RequestScope //@RequestScope(proxyMode = ScopedProxyMode.NO) public class DynamicValueHolder { private s...

spring cloud alibaba nacos config 配置加载&刷新流程

"spring cloud alibaba nacos config 配置加载&刷新流程"

spring cloud alibaba nacos config 配置加载 其实就是利用了 spring cloud bootstrap配置加载的机制实现的。 通过SPI机制(spring.factories)配置NacosConfigBootstrapConfiguration,注入NacosConfigManager、NacosPropertySourceLocator ...

Spring Cloud Bootstrap 分析

"Spring Cloud Bootstrap 分析"

在使用Spring Cloud 的情况下,通常使用的配置文件为bootstrap.yaml,而这需要引入 spring-cloud-starter-bootstrap才能生效,同时在引入spring-cloud-starter-bootstrap的情况下,观察Spring Context会发现,多了一个名为bootstrap的Parent Context。 So,今天就来分析一下spr...

static 影响 @Bean 与 BeanFactoryPostProcessor 分析

"static 影响 @Bean 与 BeanFactoryPostProcessor 分析"

Spring Version:5.3.x @Bean配置两种模式 Full Mode:在@Configuration中默认的mode,@Bean方法都会被CGLIB增强,以达到Bean之间的正确引用 Lite Mode:在@Configuration(proxyBeanMethods=false)或@Component等注解下,@Bean方法不...