SpringBoot整合Redis集羣

  1.在pom.xml中加入redis的依賴 2.在application.properties加入整合redis的配置。(spring.redis.cluster.nodes=....) 3.新建一個RedisConfig.java文件,在此類的上面加入@Configuration註解,則此類至關於applicationContext.xml配置文件。html   4.在RedisConfig
相關文章
相關標籤/搜索