shiro
Aro_HAN
这个作者很懒,什么都没留下…
展开
-
shiro-HelloWorld入门(testRealm)
结构:HelloWorld:package com.java1234.shiro; import org.apache.shiro.SecurityUtils; import org.apache.shiro.authc.UsernamePasswordToken; import org.apache.shiro.config.IniSecurityManagerFactory; import ...原创 2018-05-29 23:41:50 · 273 阅读 · 0 评论 -
Shiro-JdbcRealm
结构:依赖:jdbc_realm.ini:[main] jdbcRealm=org.apache.shiro.realm.jdbc.JdbcRealm dataSource=com.mchange.v2.c3p0.ComboPooledDataSource dataSource.driverClass=com.microsoft.sqlserver.jdbc.SQLServerDriver da...原创 2018-05-29 23:43:59 · 292 阅读 · 0 评论 -
Shiro-角色及权限管理
shiro_role.ini:[users] java1234=123456,role1,role2 jack=123,role1RoleTest:package com.java1234.shiro; import static org.junit.Assert.*; import java.util.Arrays; import org.apache.shiro.subject.Subj...原创 2018-05-30 00:56:25 · 932 阅读 · 0 评论 -
Shiro-与web应用整合
web.xml:<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.co原创 2018-05-30 14:50:06 · 427 阅读 · 0 评论 -
Shiro-Web应用访问数据库验证用户
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns原创 2018-05-30 22:06:49 · 386 阅读 · 0 评论