Spring : SpringBoot的ApplicationRunner和CommandLineRunner

1.美图

在这里插入图片描述

2.概述

如果你需要在你的SpringBoot启动完成之后实现一些功能,那么可以通过创建class实现ApplicationRunner和CommandLineRunner来完成

@Component
public class ApplicationRunnerTest implements ApplicationRunner {

    @Override
    public void run(Applic

猜你喜欢

转载自blog.csdn.net/qq_21383435/article/details/105034185