+ 新增
- 移除
# 修改
2.3.0[2015-05-31]
# 由于 EhCache 各版本的不兼容,删除了 LockLogin 中 EhCache 动态缓存的创建,使用时必须根据版本在 ehcache.xml 中配置 shiro-lockLoginCache 和 shiro-lockCheckCache 缓存信息。没有配置会抛出异常。

示例配置:
  • 2.5.0 配置示例

    <!-- ## LockLogin Configuration ## -->
    <!-- LockLogin 管理锁定时间周期的 EHCache 缓存名称-->
    <!-- 只需调整timeToIdleSeconds,默认达到登录锁定次数,登录锁定  2 小时 -->
    <!-- LockLogin name cache management locks EHCache time period-->
    <!-- Simply adjust timeToIdleSeconds, the default number of times to reach the login lockout, login lockout 2 Hours-->
    <cache
             name="shiro-lockLoginCache"
          maxElementsInMemory="100000"
          eternal="false"
          timeToIdleSeconds="0"
          timeToLiveSeconds="7200"
          diskExpiryThreadIntervalSeconds="600"
          memoryStoreEvictionPolicy="LRU"
          overflowToDisk="true"
          diskPersistent="true">
    </cache>
    
    <!-- LockLogin 统计登录错误次数时间周期的 EHCache 缓存名称 -->
    <!-- 只需调整timeToIdleSeconds,默认统计 10 分钟内的错误次数  -->
    <!-- EHCache caching name Lock Login login error statistics of the number of time periods -->
    <!-- Simply adjust timeToIdleSeconds, default statistics the number of errors in 10 minutes -->
    <cache
            name="shiro-lockCheckCache"
         maxElementsInMemory="100000"
         eternal="false"
         timeToIdleSeconds="0"
         timeToLiveSeconds="600"
         diskExpiryThreadIntervalSeconds="600"
         memoryStoreEvictionPolicy="LRU"
         overflowToDisk="true"
         diskPersistent="true">
    </cache>
  • 2.10.2 配置示例

    <!-- ## LockLogin Configuration ## -->
    <!-- LockLogin 管理锁定时间周期的 EHCache 缓存名称,只需调整timeToIdleSeconds -->
    <!-- 达到登录锁定次数,登录锁定  2 Hours -->
    <cache
       name="shiro-lockLoginCache"
       maxElementsInMemory="100000"
       eternal="false"
       timeToIdleSeconds="0"
       timeToLiveSeconds="600"
       diskExpiryThreadIntervalSeconds="600"
       memoryStoreEvictionPolicy="LRU">
    <persistence strategy="localTempSwap"/>
    </cache>
    
    <!-- LockLogin 统计登录错误次数时间周期的 EHCache 缓存名称,只需调整timeToIdleSeconds -->
    <!-- 统计 10 分钟内的错误次数  -->
    <cache
       name="shiro-lockCheckCache"
       maxElementsInMemory="100000"
       eternal="false"
       timeToIdleSeconds="0"
       timeToLiveSeconds="600"
       diskExpiryThreadIntervalSeconds="600"
       memoryStoreEvictionPolicy="LRU">
    <persistence strategy="localTempSwap"/>
    </cache>
2.2.0[2015-04-28]
# EasyJdbcRealm 刷新权限,静态方法reloadPermissions修正。
2.1.1[2015-04-13]
# 删除无效代码
2.1.0[2015-04-12]
+ Shiro 用户登录锁定功能发布。支持基于username和ip的服务器端登录锁定,支持登录失败验证码显示配置。支持锁定管理系统,提供锁定查询和解锁管理。
1.0.0[2016-04-02]
发布,支持验证码
Old version[2016-03-20]