public static void main(final String... args) throws Exception {
        try (ConfigurableApplicationContext context = SpringApplication.run(Application.class, args)) {
            log.info("Arguments: {}", Arrays.asList(args));

            try {
                context.getBean(Application.class).run(context);
            } catch (Exception e) {
                log.error("Exception in command execution", e);
            }
        }
    }
public static void main ( final String ... args ) throws Exception { try ( ConfigurableApplicationContext context = SpringApplication . run ( Application . class , args ) ) { log . info ( "Arguments: {}" , Arrays . asList ( args ) ) ; try { context . getBean ( Application . class ) . run ( context ) ; } catch ( Exception e ) { log . error ( "Exception in command execution" , e ) ; } } }
Entry point of line-bot-cli.