@Bean
    public ShiroFilterChainDefinition shiroFilterChainDefinition() {
        DefaultShiroFilterChainDefinition chainDefinition = new DefaultShiroFilterChainDefinition();
//        chainDefinition.addPathDefinition("/login.html", "authc"); // need to accept POSTs from the login form
//        chainDefinition.addPathDefinition("/logout", "logout");


        chainDefinition.addPathDefinition("/favicon.ico", "anon");
        chainDefinition.addPathDefinition("/logo.png", "anon");
        chainDefinition.addPathDefinition("/shiro.css", "anon");
        chainDefinition.addPathDefinition("/s/login", "anon");
        //allow WebStart to pull the jars for the swing app
        chainDefinition.addPathDefinition("/*.jar", "anon");
        // protected using SecureRemoteInvocationExecutor
        chainDefinition.addPathDefinition("/remoting/**", "anon");
        chainDefinition.addPathDefinition("/**", "authc");


        return chainDefinition;
    }
Sample RDBMS data source that would exist in any application - not Shiro related.

@return
samples/spring-mvc/src/main/java/org/apache/shiro/samples/spring/config/ApplicationConfig.java