Spring Boot 非web应用程序实例
在Spring Boot中,要创建一个非Web应用程序,实现CommandLineRunner并覆盖run()方法,例如:import org.springframework.boot.CommandLineRunner;@SpringBootApplicationpublic class SpringBootConsoleApplication implements CommandLi