我的JAVA笔记之spring security安全框架-配置文件
先上代码:spring-security.xml配置文件
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:security="http://www.springframework.org/schema/security"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd">
<!--授权-->
<!--资源放行 : 登录页面,静态资源-->
<!--对 /favicon.ico 资源放行-->
<security:http pattern="/favicon.ico" security="none"></security:http>
<!--拦截规则配置-->
<!--
http:用于定义相关权限控制
auto-