1. The purpose of this post
I would show some questions and answers of springboot interviews.
3. Springboot Interview Questions and Answers Series 3
3.1 How do I run some specific code when Spring Boot starts??
Sometimes, we want to run some specific code when springboot app starts,there are two ways to do this job:
3.1.1 Implements the CommandLineRunner
3.1.2 Implements the ApplicationRunner