202010-10 Spring Security OAuth过期的解决方法 最近一段时间,大家在用SpringSecurityOAuth2时可能发现有很多类过期了。大家在选择OAuth2依赖的时候,可能也会困惑,有好几个地方都可以选:那么到底选择哪一个依赖合适呢?这不同的依赖又有什么区别?今天松哥就来和大家聊一聊SpringSecurity中关于OAuth2的恩怨。前言先来大致介绍一下OAuth2在Spring框架中的发展历程。大约十年前,Spring引入了一个社区驱动的开源项目SpringSecurityOAuth,并将其纳入Sprin... 继续阅读 >
202009-24 springboot+redis过期事件监听实现过程解析 1修改redis.conf配置文件:KKeyspaceevents,publishedwithkeyspace@prefix事件EKeyeventevents,publishedwithkeyevent@prefixgGenericcommands(non-typespecific)likeDEL,EXPIRE,RENAME,…$StringcommandslListcommandssSetcommandshHashcommandszSortedsetcommandsxExpiredevents(eventsgeneratedeverytimeakeyexpires)eEvictedevents(eventsgeneratedwhenakeyisevictedfor... 继续阅读 >