会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
厚成
博客园
首页
新随笔
联系
订阅
管理
随笔分类 -
springboot
Spring bootApplicationRunner
摘要:实际开发过程中,我们可能会遇到如下一个需求,比如springboot启动后,需要去干点什么事情,那么该如何实现呢??? 我们可以通过ApplicationRunner的实现类来实现。 步骤如下: 1. 需要在类上加上component注解实例化到spring容器中 2.需要实现Application
阅读全文
posted @
2022-02-25 12:31
厚成
阅读(321)
评论(0)
推荐(0)
公告