第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

Shiro安全框架入門

Mark0101 JAVA開(kāi)發(fā)工程師
難度中級(jí)
時(shí)長(zhǎng) 2小時(shí)20分
學(xué)習(xí)人數(shù)
綜合評(píng)分9.37
112人評(píng)價(jià) 查看評(píng)價(jià)
9.4 內(nèi)容實(shí)用
9.3 簡(jiǎn)潔易懂
9.4 邏輯清晰
  • shiro
    查看全部
    0 采集 收起 來(lái)源:Shiro認(rèn)證

    2018-04-24

  • 1 創(chuàng)建SecurityManager 環(huán)境

    2 主體提交(Subject)認(rèn)證

    3 通過(guò)SecurityManager認(rèn)證

    4 通過(guò)Authenticator 認(rèn)證

    5 通過(guò)Realm 認(rèn)證


    查看全部
    0 采集 收起 來(lái)源:Shiro認(rèn)證

    2018-04-23

  • https://img1.sycdn.imooc.com//5add7fa90001cc4b07870324.jpg

    查看全部
    1 采集 收起 來(lái)源:Shiro過(guò)濾器

    2018-04-23

  • https://img1.sycdn.imooc.com//5add7f130001292806420295.jpg控制角色權(quán)限的注解,requirePermissions可以寫入多個(gè)角色權(quán)限,推薦使用

    查看全部
  • https://img1.sycdn.imooc.com//5add57ff00012b4607860354.jpg加鹽

    查看全部
    0 采集 收起 來(lái)源:Shiro加密

    2018-04-23

  • https://img1.sycdn.imooc.com//5add57e10001421008260328.jpgMD5加密

    查看全部
    0 采集 收起 來(lái)源:Shiro加密

    2018-04-23

  • https://img1.sycdn.imooc.com//5add564c00019b3508120294.jpg

    查看全部
    0 采集 收起 來(lái)源:Shiro加密

    2018-04-23

  • 中間

    查看全部
    0 采集 收起 來(lái)源:Shiro課程簡(jiǎn)介

    2018-04-23

  • 開(kāi)始?

    查看全部
    0 采集 收起 來(lái)源:Shiro課程簡(jiǎn)介

    2018-04-23

  • 項(xiàng)目結(jié)構(gòu)圖

    https://img1.sycdn.imooc.com//5adc36890001926002360253.jpg

    查看全部
    1 采集 收起 來(lái)源:Shiro集成Spring

    2018-04-22

  • springmvc.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:context="http://www.springframework.org/schema/context"
    ? ? ? xmlns:mvc="http://www.springframework.org/schema/mvc"
    ? ? ? xsi:schemaLocation="http://www.springframework.org/schema/beans
    ? ?http://www.springframework.org/schema/beans/spring-beans.xsd
    ? ?http://www.springframework.org/schema/context
    ? ?http://www.springframework.org/schema/context/spring-context.xsd
    ? ?http://www.springframework.org/schema/mvc
    ? ?http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">
    ? ? ? ?<context:component-scan base-package="com.imooc.controller"/>
    ? ? ? ?<mvc:annotation-driven/>
    ? ? ? ?<!--排除靜態(tài)文件-->
    ? ? ? ?<mvc:resources mapping="/*" location="/"/>
    </beans>


    查看全部
    4 采集 收起 來(lái)源:Shiro集成Spring

    2018-04-22

  • spring.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"
    ? ? ? xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
    ? ?<bean id="shiroFilter" class="org.apache.shiro.spring.web.ShiroFilterFactoryBean">
    ? ? ? ?<property name="securityManager" ref="securityManager"/>
    ? ? ? ?<property name="loginUrl" value="login.html"/>
    ? ? ? ?<property name="unauthorizedUrl" value="403.html"/>
    ? ? ? ?<property name="filterChainDefinitions">
    ? ? ? ? ? ?<value>
    ? ? ? ? ? ? ? ?/login.html = anon
    ? ? ? ? ? ? ? ?/subLogin = anon
    ? ? ? ? ? ? ? ?/* = authc
    ? ? ? ? ? ?</value>
    ? ? ? ?</property>
    ? ?</bean>
    ? ?<!--創(chuàng)建SecurityMananger對(duì)象-->
    ? ?<bean id="securityManager" class="org.apache.shiro.web.mgt.DefaultWebSecurityManager">
    ? ? ? ?<!--設(shè)置自定義Realm-->
    ? ? ? ?<property name="realm" ref="realm"/>
    ? ?</bean>

    ? ?<!--定義自定義的Realm-->
    ? ?<bean id="realm" class="com.imooc.shiro.realm.CustomerRealm">
    ? ? ? ?<property name="credentialsMatcher" ref="credentialsMatcher"/>
    ? ?</bean>

    ? ?<!--設(shè)置加密的算法-->
    ? ?<bean class="org.apache.shiro.authc.credential.HashedCredentialsMatcher"
    ? ? ? ? ?id="credentialsMatcher">
    ? ? ? ?<property name="hashAlgorithmName" value="md5"/>
    ? ? ? ?<property name="hashIterations" value="1"/>
    ? ?</bean>
    </beans>





    查看全部
    8 采集 收起 來(lái)源:Shiro集成Spring

    2018-04-22

  • web.xml的配置
    <?xml?version="1.0"?encoding="UTF-8"?>
    <web-app?xmlns="http://xmlns.jcp.org/xml/ns/javaee"
    ?????????xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    ?????????xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee?http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
    ?????????version="3.1">
    ????<filter>
    ????????<filter-name>shiroFilter</filter-name>
    ????????<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
    ????</filter>
    ????<filter-mapping>
    ????????<filter-name>shiroFilter</filter-name>
    ????????<url-pattern>/*</url-pattern>
    ????</filter-mapping>
    
    ????<context-param>
    ????????<param-name>contextConfigLocation</param-name>
    ????????<param-value>classpath:spring/spring.xml</param-value>
    ????</context-param>
    ????<listener>
    ????????<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    ????</listener>
    
    ????<servlet>
    ????????<servlet-name>DispatcherServlet</servlet-name>
    ????????<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    ????????<init-param>
    ????????????<param-name>contextConfigLocation</param-name>
    ????????????<param-value>classpath:spring/springmvc.xml</param-value>
    ????????</init-param>
    ????????<load-on-startup>1</load-on-startup>
    ????????<async-supported>true</async-supported>
    ????</servlet>
    
    ????<servlet-mapping>
    ????????<servlet-name>DispatcherServlet</servlet-name>
    ????????<url-pattern>/</url-pattern>
    ????</servlet-mapping>
    
    ????<!--?注冊(cè)spring提供的針對(duì)POST請(qǐng)求的中文亂碼問(wèn)題?-->
    ????<filter>
    ????????<filter-name>CharacterEncodingFilter</filter-name>
    ????????<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
    ????????<init-param>
    ????????????<param-name>encoding</param-name>
    ????????????<param-value>UTF-8</param-value>
    ????????</init-param>
    ????</filter>
    ????<filter-mapping>
    ????????<filter-name>CharacterEncodingFilter</filter-name>
    ????????<url-pattern>/*</url-pattern>
    ????</filter-mapping>
    </web-app>


    查看全部
    10 采集 收起 來(lái)源:Shiro集成Spring

    2018-04-22

  • MD5加密,加鹽。

    查看全部
    0 采集 收起 來(lái)源:Shiro加密

    2018-04-21

  • Shiro加密

    查看全部
    0 采集 收起 來(lái)源:Shiro加密

    2018-04-21

首頁(yè)上一頁(yè)2526272829下一頁(yè)尾頁(yè)

舉報(bào)

0/150
提交
取消
課程須知
基本必備:Java基礎(chǔ),Spring基礎(chǔ),使用過(guò)java web
老師告訴你能學(xué)到什么?
認(rèn)識(shí)Shiro的整體架構(gòu) Shiro認(rèn)證,授權(quán)過(guò)程及Session管理,緩存管理 Shiro在項(xiàng)目中的使用

微信掃碼,參與3人拼團(tuán)

微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)

友情提示:

您好,此課程屬于遷移課程,您已購(gòu)買該課程,無(wú)需重復(fù)購(gòu)買,感謝您對(duì)慕課網(wǎng)的支持!