zoukankan      html  css  js  c++  java
  • spring-security

    <?xml version="1.0" encoding="UTF-8"?>
    <beans:beans xmlns="http://www.springframework.org/schema/security"
    xmlns:beans="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
    http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd">


    <http pattern="/login.html" security="none"></http>
    <http pattern="/login_error.html" security="none"></http>


    <http use-expressions="false">

    <intercept-url pattern="/**" access="ROLE_USER" />

    <form-login login-page="/login.html" default-target-url="/index.html" authentication-failure-url="/login_error.html"/>

    <csrf disabled="true"/>
    </http>



    <authentication-manager>
    <authentication-provider>
    <user-service>
    <user name="admin" password="123456" authorities="ROLE_USER"/>
    </user-service>
    </authentication-provider>
    </authentication-manager>
    </beans:beans>

  • 相关阅读:
    【MySQL】【2】数字排序问题
    【MySQL】【1】表中存在重复记录,删除保留其中一条
    poj 1811 Prim test
    Yours 的博客开张啦!
    P1044
    P1103
    hustwinter1-B
    hustwinterC
    hustwinter1-A
    hdu 2138 How many prime numbers
  • 原文地址:https://www.cnblogs.com/lijun6/p/12059366.html
Copyright © 2011-2022 走看看