• 大小: 1.36MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-28
  • 语言: 其他
  • 标签: redis  

资源简介

里面有关于redis的一些笔记介绍,PPT文档, 还有自己整合的springboot-redis的一个微博demo。有需要的可以下下来看下

资源截图

代码片段和文件信息

package com.redis;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import org.springframework.session.web.http.CookieHttpSessionStrategy;
import org.springframework.session.web.http.DefaultCookieSerializer;

@SpringBootApplication
@EnableRedisHttpSession
public class SptRedisDemoApplication {


/*
* 用来设置session时长
* */
@Bean
public CookieHttpSessionStrategy cookieHttpSessionStrategy(){
CookieHttpSessionStrategy strategy=new CookieHttpSessionStrategy();
DefaultCookieSerializer cookieSerializer=new DefaultCookieSerializer();
cookieSerializer.setCookieName(“MYSESSIONID“);//cookies名称
cookieSerializer.setCookieMaxAge(1800);//过期时间(秒)
strategy.setCookieSerializer(cookieSerializer);
return strategy;
}

public static void main(String[] args) {
SpringApplication.run(SptRedisDemoApplication.class args);
}

}


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-11-10 11:40  redis笔记资料+练习demo\
     文件        4192  2013-07-27 06:52  redis笔记资料+练习demo\redis-配置文件详解.txt
     文件      280576  2014-03-06 22:06  redis笔记资料+练习demo\redis.ppt
     文件      198656  2013-10-27 12:29  redis笔记资料+练习demo\Redis笔记.doc
     目录           0  2017-11-10 11:40  redis笔记资料+练习demo\sptRedisDemo\
     文件         249  2017-10-27 01:04  redis笔记资料+练习demo\sptRedisDemo\.gitignore
     目录           0  2017-11-10 11:40  redis笔记资料+练习demo\sptRedisDemo\.idea\
     文件         649  2017-10-27 09:12  redis笔记资料+练习demo\sptRedisDemo\.idea\compiler.xml
     文件         172  2017-10-27 09:06  redis笔记资料+练习demo\sptRedisDemo\.idea\encodings.xml
     目录           0  2017-11-10 11:40  redis笔记资料+练习demo\sptRedisDemo\.idea\inspectionProfiles\
     文件         545  2017-11-08 15:31  redis笔记资料+练习demo\sptRedisDemo\.idea\inspectionProfiles\Project_Default.xml
     目录           0  2017-11-10 11:40  redis笔记资料+练习demo\sptRedisDemo\.idea\libraries\
     文件         575  2017-10-27 09:06  redis笔记资料+练习demo\sptRedisDemo\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_1_11.xml
     文件         554  2017-10-27 09:06  redis笔记资料+练习demo\sptRedisDemo\.idea\libraries\Maven__ch_qos_logback_logback_core_1_1_11.xml
     文件         514  2017-10-27 15:21  redis笔记资料+练习demo\sptRedisDemo\.idea\libraries\Maven__com_alibaba_fastjson_1_2_38.xml
     文件         522  2017-10-27 09:09  redis笔记资料+练习demo\sptRedisDemo\.idea\libraries\Maven__com_fasterxml_classmate_1_3_3.xml
     文件         644  2017-10-27 09:06  redis笔记资料+练习demo\sptRedisDemo\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_annotations_2_8_0.xml
     文件         595  2017-10-27 09:09  redis笔记资料+练习demo\sptRedisDemo\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_core_2_8_8.xml
     文件         623  2017-10-27 09:09  redis笔记资料+练习demo\sptRedisDemo\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_databind_2_8_8.xml
     文件         546  2017-10-27 09:06  redis笔记资料+练习demo\sptRedisDemo\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_2_0.xml
     文件         700  2017-10-27 09:06  redis笔记资料+练习demo\sptRedisDemo\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml
     文件         611  2017-10-27 09:06  redis笔记资料+练习demo\sptRedisDemo\.idea\libraries\Maven__javax_validation_validation_api_1_1_0_Final.xml
     文件         437  2017-11-07 17:43  redis笔记资料+练习demo\sptRedisDemo\.idea\libraries\Maven__jstl_jstl_1_2.xml
     文件         455  2017-10-27 09:06  redis笔记资料+练习demo\sptRedisDemo\.idea\libraries\Maven__junit_junit_4_12.xml
     文件         542  2017-10-27 09:06  redis笔记资料+练习demo\sptRedisDemo\.idea\libraries\Maven__net_minidev_accessors_smart_1_1.xml
     文件         521  2017-10-27 09:06  redis笔记资料+练习demo\sptRedisDemo\.idea\libraries\Maven__net_minidev_json_smart_2_2_1.xml
     文件         667  2017-11-07 17:52  redis笔记资料+练习demo\sptRedisDemo\.idea\libraries\Maven__nz_net_ultraq_thymeleaf_thymeleaf_layout_dialect_1_4_0.xml
     文件         451  2017-11-07 17:52  redis笔记资料+练习demo\sptRedisDemo\.idea\libraries\Maven__ognl_ognl_3_0_8.xml
     文件         570  2017-10-27 09:06  redis笔记资料+练习demo\sptRedisDemo\.idea\libraries\Maven__org_apache_commons_commons_pool2_2_4_2.xml
     文件         625  2017-10-27 09:09  redis笔记资料+练习demo\sptRedisDemo\.idea\libraries\Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_15.xml
     文件         611  2017-10-27 09:09  redis笔记资料+练习demo\sptRedisDemo\.idea\libraries\Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_15.xml
............此处省略189个文件信息

评论

共有 条评论