Java项目启动自动执行代码 ApplicationRunner 接口 实现ApplicationRunner接口,覆写run方法 @Overridepublic void run(ApplicationArguments args) throws Exception { //执行代码}