随笔分类 - spring
摘要:上一节说了自定义事件及监听的实现,这一节说下他的实现原理。 首先他发布事件使用过ApplicationContext.publishEvent()方法来实现,通过追踪发现publishEvent()方法的实现是在AbstractApplicationContext抽象类中实现。 先捋请这几个类的具体
阅读全文
摘要:spring的事件及监听和ApplicationContext ApplicationContext中的事件处理都是通过applicationEvent类和ApplicationListener接口来实现的。在spring发展历史上从spring4.2开始一直到spring5和springBoot新
阅读全文
摘要:SpringBoot实现AOP引入的依赖 1 <dependency> 2 <groupId>org.springframework.boot</groupId> 3 <artifactId>spring-boot-starter-aop</artifactId> 4 </dependency> 启
阅读全文

浙公网安备 33010602011771号