public static void main(String[] args) {

        ConfigurableApplicationContext context = SpringApplication.run(CliApp.class, args);

        // Grab the 'QuickStart' bean, call 'run()' to start the example.
        context.getBean(QuickStart.class).run();
    }
Spring Boot Application that show the usage of a user login, checking permissions, and annotation protected methods.
NOPMD

@see QuickStart
@see SimpleService
samples/spring-boot/src/main/java/org/apache/shiro/samples/CliApp.java