課程
/后端開發(fā)
/Java
/Shiro安全框架入門
演示代碼的github地址有嗎
2018-04-24
源自:Shiro安全框架入門 3-2
正在回答
https://github.com/chengchenrui/shiro-security
//1.創(chuàng)建securityManager環(huán)境 DefaultSecurityManager?defaultSecurityManager?=?new?DefaultSecurityManager(); defaultSecurityManager.setRealm(accountRealm); //2.主體提交認(rèn)證 SecurityUtils.setSecurityManager(defaultSecurityManager); Subject?subject?=?SecurityUtils.getSubject(); UsernamePasswordToken?token?=?new?UsernamePasswordToken("Mark","123456"); subject.login(token); subject.checkRole("admin"); System.out.print("isAuthenticated:"+subject.isAuthenticated()); subject.logout();
沒有的
舉報
從零入門Shiro安全框架
2 回答代碼在github上有嗎
4 回答演示的代碼在哪里下載?
1 回答l老師你的代碼,在哪可以下載到, 能發(fā)個 地址嗎?
1 回答開源地址?
3 回答我的寫spring.xml 時,怎么沒有代碼提示的?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2019-08-21
https://github.com/chengchenrui/shiro-security
2018-06-12
2018-04-26
沒有的