上一页 1 ··· 8 9 10 11 12 13 14 15 下一页
摘要: 原文:SpringAOP联盟(2)— Cglib代理流程分析 - 简书 (jianshu.com) 1. 在resources目录下加入logback-test.xml的配置文件 <?xml version="1.0" encoding="UTF-8"?> <configuration> <spri 阅读全文
posted @ 2021-11-16 03:01 YangDanMua 阅读(337) 评论(0) 推荐(0)
摘要: 原文:SpringAOP联盟(1)—Advisor,Advice,Pointcut,Advised、ProxyConfig - 简书 (jianshu.com) 代理对象生成 @Test public void testProxyFactory() { Person person = new Per 阅读全文
posted @ 2021-11-16 02:35 YangDanMua 阅读(232) 评论(0) 推荐(0)
摘要: 原文:聊聊Spring的AOP实现原理 - 简书 (jianshu.com) Spring版本5.3.x AOP 的基本概念 AOP(Aspect Oriented Programming)是基于切面编程的,可无侵入的在原本功能的切面层添加自定义代码,一般用于日志收集、权限认证等场景。 在了解AOP 阅读全文
posted @ 2021-11-16 01:38 YangDanMua 阅读(96) 评论(0) 推荐(0)
摘要: 参考/原地址:HandlerMethodArgumentResolver(二):Map参数类型和固定参数类型【享学Spring MVC】 - 云+社区 - 腾讯云 (tencent.com) 前面介绍了Spring MVC用于处理入参的处理器:HandlerMethodReturnValueHand 阅读全文
posted @ 2021-11-15 10:50 YangDanMua 阅读(66) 评论(0) 推荐(0)
摘要: 参考:HandlerMethodArgumentResolver(一):Controller方法入参自动封装器(将参数parameter解析为值)【享学Spring MVC】 - 云+社区 - 腾讯云 (tencent.com) HandlerMethodArgumentResolver 策略接口: 阅读全文
posted @ 2021-11-15 10:29 YangDanMua 阅读(311) 评论(0) 推荐(0)
摘要: 一、使用 1. 继承 HandlerInterceptor public interface HandlerInterceptor { // Handler 被调用前执行, 返回 false 则不再向下执行 default boolean preHandle(HttpServletRequest r 阅读全文
posted @ 2021-11-14 01:53 YangDanMua 阅读(87) 评论(0) 推荐(0)
摘要: 源码版本 Spring5.3.x,SpringBoot版本2.5.x 仅讨论 RequestMappingHandlerMapping 这个处理注解的处理器映射器 一、自动配置 既然使用了SpringBoot,SpringMVC相关的东西肯定是被自动配置了的 1. WebMvcAutoConfigu 阅读全文
posted @ 2021-11-14 00:32 YangDanMua 阅读(425) 评论(0) 推荐(0)
摘要: 一、SpringApplication 构造 run方法启动 public class SpringApplication { public static ConfigurableApplicationContext run(Class<?> primarySource, String... arg 阅读全文
posted @ 2021-10-24 01:56 YangDanMua 阅读(539) 评论(0) 推荐(0)
摘要: 一、相关的几个注解 @SpringBootConfiguration @EnableAutoConfiguration @ComponentScan(excludeFilters = { @Filter(type = FilterType.CUSTOM, classes = TypeExcludeF 阅读全文
posted @ 2021-10-22 20:36 YangDanMua 阅读(225) 评论(0) 推荐(0)
摘要: 一、Spring处理配置类大致过程 回忆一下Spring处理配置类的大致过程【ConfigurationClassPostProcessor】 【BeanFactoryPostProcessor -> BeanDefinitionRegistryPostProcessor】 Configuratio 阅读全文
posted @ 2021-10-22 20:26 YangDanMua 阅读(1063) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 下一页