2022年8月17日 作者 zeroheart

ApplicationRunner

如果想在springboot初始化之后,运行指定的逻辑,可以在runner中运行。比如在缓存预热等操作

runner 可以指定运行的顺序,使用@order即可