// Configure Shiro
AnnotationsShiroAuthorizationStrategy authz = new AnnotationsShiroAuthorizationStrategy();
getSecuritySettings().setAuthorizationStrategy(authz);
getSecuritySettings().setUnauthorizedComponentInstantiationListener(
new ShiroUnauthorizedComponentListener(LoginPage.class, UnauthorizedPage.class, authz));
mountPage("account/login", LoginPage.class);
mountPage("account/logout", LogoutPage.class);
mountPage("admin", RequireAdminRolePage.class);
mountPage("view", RequireViewPermissionPage.class);