ApplicationStartingEvent 怎么监听呢
来源:3-13 监听 Spring Boot 事件
空明灯
2018-11-16
配置spring.factories没有用。想在程序启动前做点操作。
写回答
1回答
-
小马哥
2018-11-16
ApplicationStartingEvent 是 EventPublishingRunListener 发布的,该 SpringApplicationRunListener 实现同样部署在 META-INF/spring.factories 资源中。
00
相似问题