事件 @SuppressWarnings("serial") public class CheckEvent extends ApplicationEvent { public CheckEvent(Object source) { super(source); } } 事件处理监听器 @Component public class CheckListener implements ApplicationListener<CheckEvent> { @Override pu…
6. IoC容器 6.1 Spring IoC容器和bean介绍 这一章节介绍了Spring框架的控制反转(IoC)实现的原理.IoC也被称作依赖注入(DI).It is a process whereby objects define their dependencies, that is, the other objects they work with, only through constructor arguments, arguments to a factory method, o…
Spring Boot 启动(一) SpringApplication 分析 Spring 系列目录(https://www.cnblogs.com/binarylei/p/10198698.html) @SpringBootApplication public class MyApplication { public static void main(String[] args) { SpringApplication.run(ProviderApplication.class); } } 本…