shiro配置里关于样式权限配置:
<bean id="shiroFilter" class="org.apache.shiro.spring.web.ShiroFilterFactoryBean">
<property name="securityManager" ref="securityManager"/>
<property name="loginUrl" value="/login"/>
<property name="filters">
<util:map>
<entry key="authc" value-ref="formAuthenticationFilter"/>
<entry key="sysUser" value-ref="sysUserFilter"/>
</util:map>
</property>
<property name="filterChainDefinitions">
<value>
/assets/** = anon
/common/** = anon
/css/** = anon
/images/** = anon
/js/** = anon
/login = authc
/logout = logout
/authenticated = authc
/** = authc
</value>
</property>
</bean>
样式的目录:
webapp
--assets
--common
--css
--images
--js
--WEB=INF
--index.jsp