springboot CommandLineRunner实现启动加载执行任务

有时候springboot项目须要启动是加载数据或执行任务,须要实现CommandLineRunnerspring @Component public class MyCommandLineRunner implements CommandLineRunner {springboot @Override public void run(String... args) throws Exceptio
相关文章
相关标签/搜索