上一页 1 ··· 8 9 10 11 12 13 14 15 下一页
摘要: 原文:聊聊Spring的AOP实现原理 - 简书 (jianshu.com) Spring版本5.3.x AOP 的基本概念 AOP(Aspect Oriented Programming)是基于切面编程的,可无侵入的在原本功能的切面层添加自定义代码,一般用于日志收集、权限认证等场景。 在了解AOP 阅读全文
posted @ 2021-11-16 01:38 YangDanMua 阅读(63) 评论(0) 推荐(0)
摘要: 参考/原地址:HandlerMethodArgumentResolver(二):Map参数类型和固定参数类型【享学Spring MVC】 - 云+社区 - 腾讯云 (tencent.com) 前面介绍了Spring MVC用于处理入参的处理器:HandlerMethodReturnValueHand 阅读全文
posted @ 2021-11-15 10:50 YangDanMua 阅读(52) 评论(0) 推荐(0)
摘要: 参考:HandlerMethodArgumentResolver(一):Controller方法入参自动封装器(将参数parameter解析为值)【享学Spring MVC】 - 云+社区 - 腾讯云 (tencent.com) HandlerMethodArgumentResolver 策略接口: 阅读全文
posted @ 2021-11-15 10:29 YangDanMua 阅读(279) 评论(0) 推荐(0)
摘要: 一、使用 1. 继承 HandlerInterceptor public interface HandlerInterceptor { // Handler 被调用前执行, 返回 false 则不再向下执行 default boolean preHandle(HttpServletRequest r 阅读全文
posted @ 2021-11-14 01:53 YangDanMua 阅读(67) 评论(0) 推荐(0)
摘要: 源码版本 Spring5.3.x,SpringBoot版本2.5.x 仅讨论 RequestMappingHandlerMapping 这个处理注解的处理器映射器 一、自动配置 既然使用了SpringBoot,SpringMVC相关的东西肯定是被自动配置了的 1. WebMvcAutoConfigu 阅读全文
posted @ 2021-11-14 00:32 YangDanMua 阅读(392) 评论(0) 推荐(0)
摘要: 一、SpringApplication 构造 run方法启动 public class SpringApplication { public static ConfigurableApplicationContext run(Class<?> primarySource, String... arg 阅读全文
posted @ 2021-10-24 01:56 YangDanMua 阅读(503) 评论(0) 推荐(0)
摘要: 一、相关的几个注解 @SpringBootConfiguration @EnableAutoConfiguration @ComponentScan(excludeFilters = { @Filter(type = FilterType.CUSTOM, classes = TypeExcludeF 阅读全文
posted @ 2021-10-22 20:36 YangDanMua 阅读(205) 评论(0) 推荐(0)
摘要: 一、Spring处理配置类大致过程 回忆一下Spring处理配置类的大致过程【ConfigurationClassPostProcessor】 【BeanFactoryPostProcessor -> BeanDefinitionRegistryPostProcessor】 Configuratio 阅读全文
posted @ 2021-10-22 20:26 YangDanMua 阅读(1021) 评论(0) 推荐(0)
摘要: 从自动配置开始看一下 组合注解@SpringBootApplication中的注解@EnableAutoConfiguration @Import(AutoConfigurationImportSelector.class) public @interface EnableAutoConfigura 阅读全文
posted @ 2021-10-22 16:20 YangDanMua 阅读(237) 评论(0) 推荐(0)
摘要: 参考: 死磕 java集合 by 彤哥读源码 1. 概述 1.1 简介 CopyOnWriteArrayList是ArrayList的线程安全版本,内部也是通过数组实现,每次对数组的修改都完全拷贝一份新的数组来修改,修改完了再替换掉老数组,这样保证了只阻塞写操作,不阻塞读操作,实现读写分离。 1.2 阅读全文
posted @ 2020-04-19 12:33 YangDanMua 阅读(165) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 下一页