共 45 篇文章 |
|
DelegatingFilterProxy</filter-class> <init-param> <param-name>targetFilterLifecycle</param-name> <param-value>true</param-value> </init-param></filter><filter-mapping> <filter-name>shiroFilter</filter-name> <url-pattern>/*</url-pattern></... 阅51 转1 评0 公众公开 15-06-14 15:42 |
阅4420 转18 评0 公众公开 14-10-17 13:35 |
Xml代码 [main] ds = org.apache.shiro.jndi.JndiObjectFactory ds.resourceName = java:jboss/datasources/IPSST ds.requiredType = javax.sql.DataSource jdbcRealm = org.apache.shiro.realm.jdbc.JdbcRealm jdbcRealm.permissionsLookupEnabled = true jdbcRealm.authenticationQuery = select login_pwd from hr_j_emp_info whe... 阅222 转2 评0 公众公开 14-10-17 13:34 |
Java代码 <bean id="userRealm" class="com.github.zhangkaitao.shiro.chapter16.realm.UserRealm"> <property name="credentialsMatcher" ref="credentialsMatcher"/> <property name="cachingEnabled" value="false"/> </bean>Java代码 &... 阅325 转2 评0 公众公开 14-08-07 21:59 |
阅1577 转7 评0 公众公开 14-08-07 21:56 |
shiro如何动态管理url.import org.apache.commons.lang3.import org.apache.shiro.import com.capitalbio.soft.core.shiro.1:对 org.apache.shiro.web.filter.mgt.DefaultFilterChainManager.filterChains 执行清空,它维护的是个map.否则原先的没有被覆盖的filterChains还会存在!3:使用org.apache.shiro.web.filter.mgt.DefaultFilterChainMana... 阅8 转自风中的眼... 公众公开 14-08-07 21:49 |
SpringMVC+Apache Shiro+JPA(hibernate)案例教学(四)基于Shiro验证用户权限,且给用户授权。package org.shiro.demo.service.realm;import org.apache.shiro.authc.import org.apache.shiro.authz.import org.apache.shiro.realm.import org.apache.shiro.subject.import org.shiro.demo.entity.import org.shiro.demo.service.import org.... 阅231 转2 评0 公众公开 14-08-07 15:25 |
} //--> </script> </head> <body> <form action="<%=basePath%>/login" method="post"> <ul> <li>姓 名:<input type="text" name="account" /> </li> <li>密 码:<input type="text" name="password" /&g... 阅682 转13 评0 公众公开 14-08-07 15:23 |
SpringMVC+Apache Shiro+JPA(hibernate)案例教学(二)基于SpringMVC+Shiro的用户登录权限验证。大致解释:<bean id="shiroDbRealm" class="org.shiro.demo.service.realm.ShiroDbRealm" ></bean>这个就是指定Shiro验证用户登录的类为自定义的ShiroDbRealm.java。import org.apache.shiro.authc.import org.... 阅244 转3 评0 公众公开 14-08-07 15:22 |
SpringMVC+Apache Shiro+JPA(hibernate)案例教学(一)整合配置。 阅485 转9 评0 公众公开 14-08-07 15:22 |