- 博客(1)
- 收藏
- 关注
原创 Spingboot中实现ApplicationListener接口的方法执行多次的解决方案
@Service @Slf4j public class StartService implements ApplicationListener<ContextRefreshedEvent> { @Resource RobotScheduleService robotScheduleService; @Override public void onApplicationEvent(ContextRefreshedEvent event) { //可以在此处把context打印下.
2021-04-22 19:25:39
926
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人