<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<!--创建域-->
<bean >

</bean>
<!--创建安全认证管理器-->
<bean ></property>

</bean>
<bean >
<value>
<!--对静态资源不拦截-->
/static/*=anon
/people/login.do=anon
/people/toLogin.do=anon
/people/error.do=anon
/people/index.do=anon
<!--配置/user/list.do只有有user权限的用户才能访问
/user/list.do=perms[user:list]
-->
<!--声明/user/logout.do使用logout的过滤器
该过滤器会自动帮我们清除退出登录时要清除的东西
-->
/people/logout.do=logout
/*=authc
/*/*=authc
</value>
</property>
</bean>
</beans>

相关文章: