<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      Spring Security 匿名認證

      1、項目截圖:

      2、匿名認證配置:

      <?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">
          <security:http auto-config="true">
              <security:anonymous enabled="true" key="doesNotMatter" granted-authority="ROLE_ANONYMOUSLY" username="user"></security:anonymous>
              <security:intercept-url pattern="/admin/**" access="ROLE_USER"/> --設置ROLE_USER訪問權限
              <security:intercept-url pattern="/common/**" access="ROLE_USER,ROLE_ANONYMOUSLY"/>
              <security:intercept-url pattern="/**" access="ROLE_USER,ROLE_ANONYMOUSLY"></security:intercept-url>
          </security:http>
      <!--    <bean id="anonymousAuthFilter"
                class="org.springframework.security.web.authentication.AnonymousAuthenticationFilter">
              <property name="key" value="doesNotMatter" />
              <property name="userAttribute" value="anonymousUser,ROLE_ANONYMOUS" />
          </bean>
      
          <bean id="anonymousAuthenticationProvider"
                class="org.springframework.security.authentication.AnonymousAuthenticationProvider">
              <property name="key" value="doesNotMatter" />
          </bean>-->
          <security:authentication-manager>
              <security:authentication-provider>
                  <security:user-service>
                      <security:user name="admin" password="admin" authorities="ROLE_USER"></security:user>
                      <security:user name="user" password="user" authorities="ROLE_ANONYMOUSLY"></security:user>
                  </security:user-service>
              </security:authentication-provider>
          </security:authentication-manager>
      </beans>

      admin 登陸后能訪問所有頁面,而user登陸將返回拒絕授權,如圖:

      posted @ 2014-12-11 16:39  tyb1222  閱讀(5883)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 制服 丝袜 亚洲 中文 综合| 扒开双腿猛进入喷水高潮叫声| 国产日韩精品欧美一区灰| 国产精品视频中文字幕| 成人污视频| 成人亚洲国产精品一区不卡| 国产99视频精品免费专区| 色道久久综合亚洲精品蜜桃| 国产片AV国语在线观看手机版| 一区二区乱子伦在线播放| 国产区精品福利在线熟女| 国内极度色诱视频网站| 精品国产一区二区三区av性色| 亚洲AV无码秘?蜜桃蘑菇| 九九热在线观看免费视频| 内射干少妇亚洲69XXX| 性人久久久久| 体态丰腴的微胖熟女的特征| 亚洲午夜理论片在线观看| 深夜释放自己在线观看| 国产精品 无码专区| 忍着娇喘人妻被中出中文字幕| 99在线视频免费观看| 精品久久精品久久精品久久| 精品国产美女福到在线不卡| 国产 麻豆 日韩 欧美 久久| 日韩无矿砖一线二线卡乱| 野花香视频在线观看免费高清版| 亚洲人成亚洲人成在线观看| 亚洲人成色99999在线观看| 欧美猛少妇色xxxxx| 日本边添边摸边做边爱喷水| 最新国产精品好看的精品| 澄迈县| 国产三级国产精品国产专| 亚洲欧洲日韩国内精品| 99久久精品费精品国产一区二区 | 中文字幕亚洲无线码A| 亚洲av成人精品日韩一区| 日韩黄色av一区二区三区| 欧美老熟妇乱子伦牲交视频 |