当前位置: 首页 > news >正文

无极网站建设网络营销策划方案步骤

无极网站建设,网络营销策划方案步骤,广州海珠区新楼盘在售楼盘,wordpress 插件管理天行健#xff0c;君子以自强不息#xff1b;地势坤#xff0c;君子以厚德载物。 每个人都有惰性#xff0c;但不断学习是好好生活的根本#xff0c;共勉#xff01; 文章均为学习整理笔记#xff0c;分享记录为主#xff0c;如有错误请指正#xff0c;共同学习进步。… 天行健君子以自强不息地势坤君子以厚德载物。 每个人都有惰性但不断学习是好好生活的根本共勉 文章均为学习整理笔记分享记录为主如有错误请指正共同学习进步。 Redis配置类 Redis配置类1Redis配置类2 在使用redis时会用到RedisTemplate工具需要配置配置类以此来连接工厂、序列化存入的键值。 这里配置了两个不同的配置类内容大致形同细节略有不同可挑选使用。 Redis配置类1 具备序列化、工厂连接、键值字符串序列化、hash键值字符串序列化 package com.data.config;import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.redis.connection.RedisConnectionFactory; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.serializer.RedisSerializer; import org.springframework.data.redis.serializer.StringRedisSerializer;/*** ClassDescription:* Author李白* Date2023/7/25 14:44*/ Configuration public class RedisTemplateConfig {Bean(name redisTemplate)public RedisTemplate redisTemplate(RedisConnectionFactory factory){System.out.println(redis序列化--);RedisTemplate redisTemplate new RedisTemplate();RedisSerializer redisSerializer new StringRedisSerializer();//连接工厂redisTemplate.setConnectionFactory(factory);//键序列化redisTemplate.setKeySerializer(redisSerializer);//值序列化redisTemplate.setValueSerializer(redisSerializer);//key hashMap序列化redisTemplate.setHashKeySerializer(redisSerializer);//value hashMap序列化redisTemplate.setHashValueSerializer(redisSerializer);return redisTemplate;}} Redis配置类2 具备序列化、工厂连接、键值序字符串列化、hash键值Json序列化 package com.data.config;import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.PropertyAccessor; import com.fasterxml.jackson.databind.ObjectMapper; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.redis.connection.RedisConnectionFactory; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer; import org.springframework.data.redis.serializer.StringRedisSerializer;/*** ClassDescription:* Author李白* Date2023/7/25 14:44*/ Configuration public class RedisTemplateConfig {BeanSuppressWarnings(all)public RedisTemplateString, Object redisTemplate(RedisConnectionFactory factory) {RedisTemplateString, Object template new RedisTemplateString, Object();template.setConnectionFactory(factory);Jackson2JsonRedisSerializer jackson2JsonRedisSerializer new Jackson2JsonRedisSerializer(Object.class);ObjectMapper om new ObjectMapper();om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY);om.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL);jackson2JsonRedisSerializer.setObjectMapper(om);StringRedisSerializer stringRedisSerializer new StringRedisSerializer();// key采用String的序列化方式template.setKeySerializer(stringRedisSerializer);// hash的key也采用String的序列化方式template.setHashKeySerializer(stringRedisSerializer);// value序列化方式采用jacksontemplate.setValueSerializer(jackson2JsonRedisSerializer);// hash的value序列化方式采用jacksontemplate.setHashValueSerializer(jackson2JsonRedisSerializer);template.afterPropertiesSet();return template;}}
http://www.sczhlp.com/news/161160/

相关文章:

  • 怎么做免流网站高端外贸网站建设
  • 网站内容怎么修改成都健康码小程序
  • 应用大全网站价格低文案
  • 移动端网站的重要性企业网站商城
  • 海口会计报名网站商城网站制作公司地址
  • 网站建设倒计时代码襄樊做网站
  • 免费游戏网站模板广州网站建设公司怎么样
  • 怎么把淘宝店放到自己做的网站去怎么做一个摄影平台网
  • 网站建设相关基础实验总结网站开发我能做什么
  • centos7怎么做网站服务器一个下载网站
  • 质量好网站建设公司seo网站推广教程
  • 云服务器上放多个网站中国百强城市榜单公布
  • 网站建设规划设计公司企业信息平台登录
  • 辽阳建设银行网站技术先进的网站建设公
  • 网站页面好了怎么做后端广州百度提升优化
  • 网站的推广等内容装修公司网站该怎么做
  • 移动网站建设的前景wordpress注册登录页面模板
  • 建筑网站的特点h5源码分享网
  • 辛集外贸网站建设wordpress如何查看插件
  • 手机购买网站源码建设银行网站登录
  • 建个企业网站收费网站做图尺寸大小
  • 网站建设制作公司哪家电子商务网站建设与管理的有关论文
  • 揭阳网站建设方案托管专业做曝光引流网站
  • 怎么才能创个网站数据做图网站有哪些内容
  • 企业网站怎么制作网站建设不是一次性费用
  • wordpress 指定网站后台seo优化如何做
  • 国庆集训做题10.1 - 10.3
  • 使用 Copilot AI + Blazor 编一个五子棋游戏
  • 软件工程课程第一次团队作业
  • 怎么获取网站数据做统计梦创义网站建设公司