Skip to content

Instantly share code, notes, and snippets.

@behrangsa
Last active September 22, 2021 14:48
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save behrangsa/6a7f050e7f6d193918ad7e910812fb28 to your computer and use it in GitHub Desktop.
Save behrangsa/6a7f050e7f6d193918ad7e910812fb28 to your computer and use it in GitHub Desktop.
Console based Spring Boot app
@SpringBootApplication
public class Main {
public static void main(String[] args) {
final ConfigurableApplicationContext context = SpringApplication.run(Main.class, args);
final AppBean app = context.getBean(AppBean.class);
app.run(args);
}
}
@RobbeinChen
Copy link

wonderful and thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment