23.8. 使用ApplicationRunner或CommandLineRunner
import org.springframework.boot.*
import org.springframework.stereotype.*
@Component
public class MyBean implements CommandLineRunner {
public void run(String... args) {
// Do something...
}
}最后更新于