spring
炸天总指挥
这个作者很懒,什么都没留下…
展开
-
@Configuration @Bean
xml文件里的配置 <!-- 引入配置文件 --> <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locat...原创 2018-05-08 19:31:34 · 170 阅读 · 0 评论 -
redis-cluster做spring-boot的缓存
网上有很多redis做spring-boot缓存的例子,贴两篇写的比较详细的。 https://www.jianshu.com/p/5a70b13a4fa7 https://blog.csdn.net/canot/article/details/52702029 但关于redis-cluster做spring-boot缓存的例子真是少之又少,所以就写这篇文章记录下过程。如...原创 2018-06-29 17:28:10 · 931 阅读 · 1 评论 -
cache CacheManager @Cacheable
今天研究了会spring自带的缓存cache,首先得弄清楚cache和CacheManager究竟是什么。一.Cache,CacheManager结构 Cache是一个接口,可以像Map一样put,get值,一个name为people的cache,可以存储多个不同key的数据,如key=22,value="123";key=23;value="224". CacheManager...原创 2018-06-26 20:18:39 · 9058 阅读 · 0 评论 -
Spring Security源码解析(一.基础知识点与流程介绍)
目录一、Authentication,AuthenticationManager,AuthenticationProvider二、UserDetails,UserDetailsService,UserCache,User三、SecurityContext,SecurityContextHolder四、WebSecurityConfigurerAdapter五、总结首先回想...原创 2018-07-17 20:21:09 · 7932 阅读 · 11 评论 -
ApplicationEvent和ApplicationListener源码解析
1.何为观察者设计模式在了解源码之前,先问下自己懂了观察者设计模式没,以及为什么要用观察者设计模式。所谓观察者设计模式,可以这么类比,某个班在教室里自习,A在看小黄书,B在玩GBA,C在睡觉。这时候班主任突然出现在教室的窗户边暗中观察自习情况。A,B,C感觉有一道灼热的目光看着自己,抬起头来发现了老师,马上A放下了手中的小黄书拿出了数学作业开始做,B放下了手中的GBA开始看英语书,...原创 2018-07-30 14:23:29 · 1076 阅读 · 0 评论