/** * A generic main method that auto-loads available modules and runs Bootique stack. Useful for apps that don't * care to customize their "main()". * * @param args app arguments passed by the shell. * @since 0.17 */ public static void main(String[] args) { Bootique.app(args).autoLoadModules().exec().exit(); }
/** * Executes Bootique application, exiting the JVM at the end. * <p> * If you don't want your app to shutdown after executing Bootique, call {@link #exec()} instead. * * @deprecated since 0.23 in favor of {@link #exec()} followed by {@link CommandOutcome#exit()}. */ @Deprecated public void run() { exec().exit(); }
/** * A generic main method that auto-loads available modules and runs Bootique stack. Useful for apps that don't * care to customize their "main()". * * @param args app arguments passed by the shell. * @since 0.17 */ public static void main(String[] args) { Bootique.app(args).autoLoadModules().exec().exit(); }