@SpringBootApplication @EnableTask public class MyApp { @Bean public MyTaskApplication myTask() { return new MyTaskApplication(); } public static void main(String[] args) { SpringApplication.run(MyApp.class); } public static class MyTaskApplication implements CommandLineRunner { @Override public void run(String... strings) throws Exception { System.out.println("Hello World"); } } }
This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to [email protected].