SpringBoot启动加载类ApplicationRunner
SpringBoot启动加载类ApplicationRunner有时希望项目在启动的时候执行一些操作,就要用到ApplicationRunnerApplicationRunner是一个接口,我们需要实现它,并重写run()方法,当项目启动时,run()方法便会自动执行@Order(value=1)@Componentpublic class TestController implements ApplicationRunner { @Override public voi