public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(CliApp.class);
        context.getBean(QuickStart.class).run();
//        System.exit(0);
    }
Example hard coded Realm bean.

@return hard coded Realm bean
samples/spring/src/main/java/org/apache/shiro/samples/spring/CliApp.java