spring
文章平均质量分 79
yjiwliuxin888
这个作者很懒,什么都没留下…
展开
-
spring+ehcahe
1 添加jar包支持 net.sf.ehcache ehcache 2.10.4 2 配制ehcahe.xml :当内存缓存中对象数量超过maxElementsInMemory时,将缓存对象写到磁盘缓存中(需对象实现序列化接口)。 -->原创 2017-09-07 17:23:21 · 558 阅读 · 0 评论 -
spring+ehcache集群
ehcache的三种最为常用集群方式,分别是 RMI、JGroups 以及 EhCache Server 。 今天自己配制了一下rmi方式。 ehcache集群配制文件 配置提供者 集群ip与端口 1、peerDiscovery,提供者方式,有两种方式:自动发现(automatic)、手动配置(manual) 2原创 2017-09-07 17:29:41 · 290 阅读 · 0 评论 -
spring+shiro
spring集成shiro做用户主证及资源授权 1 FormAuthenticationFilter过滤器来接收数据及验证码处理。 2. 自定义Realm继承AuthorizingRealm,此类有两个核心方法doGetAuthenticationInfo(认证),doGetAuthorizationInfo(授权),未登陆用户shiro会自动调do原创 2017-09-07 20:57:21 · 182 阅读 · 0 评论