@SpringBootApplicationpublicclassMyApp {
@BeanpublicMyTaskApplicationmyTask() {
returnnewMyTaskApplication();
}
publicstaticvoidmain(String[] args) {
SpringApplication.run(MyApp.class);
}
publicstaticclassMyTaskApplicationimplementsCommandLineRunner {
@Overridepublicvoidrun(String... strings) throwsException {
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 spring-code-of-conduct@pivotal.io.