- 博客(178)
- 收藏
- 关注
原创 SpringCloud-Gateway源码笔记整理
网关的执行流程HttpWebHandlerAdapter: 构建组装网关请求的上下文。DispatcherHandler:所有请求的分处理器,负责分请求到对应的处理器。RoutePredicateHandlerMapping:路由断言处理器,用于路由的查找,以及找到路由后返回对应的WebHandler, DispatcherHandler会依次遍历HandlerMapping集合进行处理FilteringWebHandler:创建过滤器链,使用Filter链表处理请求。 RoutePredic
2024-03-19 10:05:23 430
原创 MybatisPlus的Id填充笔记整理
启动阶段构建 sqlSessionFactory对象MybatisPlusAutoConfiguration#sqlSessionFactory从Spring容器获取 IdentifierGenerator 对象放入到 GlobalConfig对象中设置 GlobalConfig 到 MybatisSqlSessionFactoryBeanMybatisSqlSessionFactoryBean#getObject -> MybatisSqlSessionFactoryBean#after
2023-11-12 10:46:30 176
原创 Spring AOP基于注解方式笔记整理
从BeanFactory容器中获取所有的Aspect对象ReflectiveAspectJAdvisorFactory#getAdvisors解析出Advisor并放入缓存BeanFactoryAdvisorRetrievalHelper#findAdvisorBeans获取容器中的Advisor集合我们没有手动向容器中注入过Advisor对象,所以这里有一定会返回空集合。
2023-11-02 22:26:58 113
原创 Spring AOP基于XML方式笔记整理
XML AOP 加载流程ClassPathXmlApplicationContext#refreshAbstractApplicationContext#obtainFreshBeanFactoryAbstractRefreshableApplicationContext#refreshBeanFactory创建DefaultListableBeanFactoryAbstractApplicationContext#loadBeanDefinitions(beanFactory)创建XmlBe
2023-11-02 13:43:30 545
原创 SpringMVC与JavaConfig笔记整理
实战笔记编写Mvc配置类@Configuration@EnableWebMvc@ComponentScan("com.yicj.study.webmvc.controller")public class WebConfig {}编写App配置类@Configuration@ComponentScan("com.yicj.study.webmvc.service")public class AppConfig {}编写Java注解MVC启动类(WebApplicationInit
2023-11-02 10:19:37 455
原创 Spring AOP 基于注解源码整理
导入配置类EnableAspectJAutoProxy 注解导入 AspectJAutoProxyRegistrarImportBeanDefinitionRegistrar#registerBeanDefinitions向容器中加入AnnotationAwareAspectJAutoProxyCreatorAnnotationAwareAspectJAutoProxyCreator#initBeanFactory初始化ReflectiveAspectJAdvisorFactoryprotected
2023-10-04 12:48:11 115
原创 Spring Webflux DispatcherHandler源码整理
【代码】Spring Webflux DispatcherHandler源码整理。
2023-10-03 19:55:41 234
原创 Spring Webflux HttpHandler源码整理
HttpHandler的构造自动启动配置类:HttpHandlerAutoConfiguration@Beanpublic HttpHandler httpHandler(ObjectProvider<WebFluxProperties> propsProvider) { HttpHandler httpHandler = WebHttpHandlerBuilder.applicationContext(this.applicationContext).build(); W
2023-10-03 13:37:10 657
原创 Sentinel整合Gateway
pom引入依赖<dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId></dependency><dependency> <groupId>com.alibaba.cloud</groupId> <a
2023-09-16 19:07:27 624
原创 Sentinel整合RestTemplate
resttemplate开启sentinel保护配置resttemplate.sentinel.enabled=true配置sentinel-dashboard地址spring.cloud.sentinel.transport.dashboard=localhost:8858\spring.cloud.sentinel.transport.dashboard.port=8739 实例化RestTemplate并加入@SentinelRestTemplate注解@Configurationp
2023-09-16 19:05:49 363
原创 Fastdfs环境搭建
安装包下载路径libfastcommon下载地址:https://github.com/happyfish100/libfastcommon/releasesFastDFS下载地址:https://github.com/happyfish100/fastdfs/releasesfastdfs-nginx-module下载地址:https://github.com/happyfish100/fastdfs-nginx-module/releasesnginx下载地址:https://nginx.or
2023-04-28 15:45:44 1024
原创 Nginx安装笔记
创建目录/usr/local/mysoft/usr/local/mysoft/dependents/usr/local/mysoft/modules机器安装编译环境yum -y install gcc+ gcc-c++ lua-devel下载nginx(之后解压到/usr/local/mysoft)nginx-1.14.2.tar.gz下载软件包(只有解压到/usr/local/mysoft/dependents)openssl-1.1.1n.tar.gz (http://www.
2022-04-24 16:57:11 2758 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人