ApplicationListener接口

在这里插入图片描述
ApplicationListener<>里边的泛型需要继承ApplicationEvent抽象方法

在这里插入图片描述
ContextRefreshedEvent为上下文刷新事件,实现了这个接口,spring容器加载完毕后,就会执行这个实现类的重写的方法.
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/reee112/article/details/83830155
今日推荐