SpringBoot_原理-事件监听机制相关测试

  》书写两个监听器的实现类

 

  》书写两个runner的实现类,并注册到容器中

 

 

   》配置两个监听器

 

原文地址:https://www.cnblogs.com/ibcdwx/p/13718772.html