1. /**
    2. * Created by l2h on 18-4-16.
    3. * Desc: 进行系统初始化操作
    4. * @author l2h
    5. */
    6. @Component
    7. //如果有多个runner需要指定一些顺序
    8. @Order(1)
    9. public class SimosApplicationRunner implements ApplicationRunner {
    10. @Override
    11. public void run(ApplicationArguments args) throws Exception {
    12. System.out.println("系统启动成功");
    13. }
    14. }