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

有什么可以做建筑模型的网站WordPress转织梦样式调用

有什么可以做建筑模型的网站,WordPress转织梦样式调用,上海设计院排名,网站设计背景图片目录 一、Spring Data Redis使用方式 1.1 介绍 1.2 配置 1.3 RedisTemplate 二、环境搭建 2.1 导入Spring Data Redis的maven坐标 2.2 配置Redis数据源 2.3 编写配置类#xff0c;创建RedisTemplate对象 三、操作常见类型数据 3.1 操作字符串类型数据 …目录 一、Spring Data Redis使用方式 1.1 介绍        1.2 配置  1.3 RedisTemplate 二、环境搭建  2.1 导入Spring Data Redis的maven坐标 2.2 配置Redis数据源   2.3 编写配置类创建RedisTemplate对象   三、操作常见类型数据 3.1 操作字符串类型数据 3.2 操作哈希类型数据   3.3 操作列表类型数据 3.4 操作集合类型数据 3.5 操作有序集合类型数据 3.6 通用命令操作 一、Spring Data Redis使用方式 1.1 介绍        Spring Data Redis 是 Spring 的一部分提供了在 Spring 应用中通过简单的配置就可以访问 Redis 服务对 Redis 底层开发包进行了高度封装。在 Spring 项目中可以使用Spring Data Redis来简化 Redis 操作。 网址Spring Data Redis 1.2 配置  Spring Boot提供了对应的Startermaven坐标 dependencygroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-data-redis/artifactId /dependency 1.3 RedisTemplate Spring Data Redis中提供了一个高度封装的类RedisTemplate对相关api进行了归类封装,将同一类型操作封装为operation接口具体分类如下 ValueOperationsstring数据操作 SetOperationsset类型数据操作 ZSetOperationszset类型数据操作 HashOperationshash类型的数据操作 ListOperationslist类型的数据操作 二、环境搭建  2.1 导入Spring Data Redis的maven坐标 dependency      groupIdorg.springframework.boot/groupId      artifactIdspring-boot-starter-data-redis/artifactId /dependency 2.2 配置Redis数据源   在application-dev.yml中添加 sky:   redis:     host: localhost     port: 6379     password: 123456     database: 10 解释说明 database:指定使用Redis的哪个数据库Redis服务启动后默认有16个数据库编号分别是从0到15。 可以通过修改Redis配置文件来指定数据库的数量。 在application.yml中添加读取application-dev.yml中的相关Redis配置 spring:   profiles:     active: dev   redis:     host: ${sky.redis.host}     port: ${sky.redis.port}     password: ${sky.redis.password}     database: ${sky.redis.database}  2.3 编写配置类创建RedisTemplate对象   package com.sky.config;import lombok.extern.slf4j.Slf4j; 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.StringRedisSerializer;Configuration Slf4j public class RedisConfiguration {Beanpublic RedisTemplate redisTemplate(RedisConnectionFactory redisConnectionFactory){log.info(开始创建redis模板对象...);RedisTemplate redisTemplate new RedisTemplate();//设置redis的连接工厂对象redisTemplate.setConnectionFactory(redisConnectionFactory);//设置redis key的序列化器redisTemplate.setKeySerializer(new StringRedisSerializer());return redisTemplate;} } 解释说明 当前配置类不是必须的因为 Spring Boot 框架会自动装配 RedisTemplate 对象但是默认的key序列化器为 JdkSerializationRedisSerializer导致我们存到Redis中后的数据和原始数据有差别故设置为 StringRedisSerializer序列化器。 三、操作常见类型数据 3.1 操作字符串类型数据 /*** 操作字符串类型的数据*/Testpublic void testString(){// set get setex setnxredisTemplate.opsForValue().set(name,小明);String city (String) redisTemplate.opsForValue().get(name);System.out.println(city);redisTemplate.opsForValue().set(code,1234,3, TimeUnit.MINUTES);redisTemplate.opsForValue().setIfAbsent(lock,1);redisTemplate.opsForValue().setIfAbsent(lock,2);} 3.2 操作哈希类型数据   /*** 操作哈希类型的数据*/Testpublic void testHash(){//hset hget hdel hkeys hvalsHashOperations hashOperations redisTemplate.opsForHash();hashOperations.put(100,name,tom);hashOperations.put(100,age,20);String name (String) hashOperations.get(100, name);System.out.println(name);Set keys hashOperations.keys(100);System.out.println(keys);List values hashOperations.values(100);System.out.println(values);hashOperations.delete(100,age);} 3.3 操作列表类型数据 /*** 操作列表类型的数据*/Testpublic void testList(){//lpush lrange rpop llenListOperations listOperations redisTemplate.opsForList();listOperations.leftPushAll(mylist,a,b,c);listOperations.leftPush(mylist,d);List mylist listOperations.range(mylist, 0, -1);System.out.println(mylist);listOperations.rightPop(mylist);Long size listOperations.size(mylist);System.out.println(size);} 3.4 操作集合类型数据 /*** 操作集合类型的数据*/Testpublic void testSet(){//sadd smembers scard sinter sunion sremSetOperations setOperations redisTemplate.opsForSet();setOperations.add(set1,a,b,c,d);setOperations.add(set2,a,b,x,y);Set members setOperations.members(set1);System.out.println(members);Long size setOperations.size(set1);System.out.println(size);Set intersect setOperations.intersect(set1, set2);System.out.println(intersect);Set union setOperations.union(set1, set2);System.out.println(union);setOperations.remove(set1,a,b);} 3.5 操作有序集合类型数据 /*** 操作有序集合类型的数据*/Testpublic void testZset(){//zadd zrange zincrby zremZSetOperations zSetOperations redisTemplate.opsForZSet();zSetOperations.add(zset1,a,10);zSetOperations.add(zset1,b,12);zSetOperations.add(zset1,c,9);Set zset1 zSetOperations.range(zset1, 0, -1);System.out.println(zset1);zSetOperations.incrementScore(zset1,c,10);zSetOperations.remove(zset1,a,b);} 3.6 通用命令操作 /*** 通用命令操作*/Testpublic void testCommon(){//keys exists type delSet keys redisTemplate.keys(*);System.out.println(keys);Boolean name redisTemplate.hasKey(name);Boolean set1 redisTemplate.hasKey(set1);for (Object key : keys) {DataType type redisTemplate.type(key);System.out.println(type.name());}redisTemplate.delete(mylist);}
文章转载自:
http://www.morning.dmkhd.cn.gov.cn.dmkhd.cn
http://www.morning.sknbb.cn.gov.cn.sknbb.cn
http://www.morning.nkjkh.cn.gov.cn.nkjkh.cn
http://www.morning.weitao0415.cn.gov.cn.weitao0415.cn
http://www.morning.qkzdc.cn.gov.cn.qkzdc.cn
http://www.morning.bfmrq.cn.gov.cn.bfmrq.cn
http://www.morning.qmmfr.cn.gov.cn.qmmfr.cn
http://www.morning.npmpn.cn.gov.cn.npmpn.cn
http://www.morning.wgdnd.cn.gov.cn.wgdnd.cn
http://www.morning.ppdr.cn.gov.cn.ppdr.cn
http://www.morning.dfckx.cn.gov.cn.dfckx.cn
http://www.morning.wjplr.cn.gov.cn.wjplr.cn
http://www.morning.nlmm.cn.gov.cn.nlmm.cn
http://www.morning.xfxlr.cn.gov.cn.xfxlr.cn
http://www.morning.klyyd.cn.gov.cn.klyyd.cn
http://www.morning.gwdmj.cn.gov.cn.gwdmj.cn
http://www.morning.zhmgcreativeeducation.cn.gov.cn.zhmgcreativeeducation.cn
http://www.morning.vuref.cn.gov.cn.vuref.cn
http://www.morning.rtsd.cn.gov.cn.rtsd.cn
http://www.morning.dnbkz.cn.gov.cn.dnbkz.cn
http://www.morning.nj-ruike.cn.gov.cn.nj-ruike.cn
http://www.morning.bhrbr.cn.gov.cn.bhrbr.cn
http://www.morning.dighk.com.gov.cn.dighk.com
http://www.morning.lzrpy.cn.gov.cn.lzrpy.cn
http://www.morning.supera.com.cn.gov.cn.supera.com.cn
http://www.morning.ktmbp.cn.gov.cn.ktmbp.cn
http://www.morning.lyjwb.cn.gov.cn.lyjwb.cn
http://www.morning.ddtdy.cn.gov.cn.ddtdy.cn
http://www.morning.mdtfh.cn.gov.cn.mdtfh.cn
http://www.morning.neletea.com.gov.cn.neletea.com
http://www.morning.rgkd.cn.gov.cn.rgkd.cn
http://www.morning.lcdtb.cn.gov.cn.lcdtb.cn
http://www.morning.qxlgt.cn.gov.cn.qxlgt.cn
http://www.morning.srgnd.cn.gov.cn.srgnd.cn
http://www.morning.ygkq.cn.gov.cn.ygkq.cn
http://www.morning.ymsdr.cn.gov.cn.ymsdr.cn
http://www.morning.czgfn.cn.gov.cn.czgfn.cn
http://www.morning.hjssh.cn.gov.cn.hjssh.cn
http://www.morning.lfmwt.cn.gov.cn.lfmwt.cn
http://www.morning.dmxzd.cn.gov.cn.dmxzd.cn
http://www.morning.wfmqc.cn.gov.cn.wfmqc.cn
http://www.morning.tkrdg.cn.gov.cn.tkrdg.cn
http://www.morning.lqynj.cn.gov.cn.lqynj.cn
http://www.morning.spbp.cn.gov.cn.spbp.cn
http://www.morning.ktpzb.cn.gov.cn.ktpzb.cn
http://www.morning.lfgql.cn.gov.cn.lfgql.cn
http://www.morning.shsh1688.com.gov.cn.shsh1688.com
http://www.morning.gqfbl.cn.gov.cn.gqfbl.cn
http://www.morning.mcjyair.com.gov.cn.mcjyair.com
http://www.morning.lpmdy.cn.gov.cn.lpmdy.cn
http://www.morning.xpqyf.cn.gov.cn.xpqyf.cn
http://www.morning.hnkkm.cn.gov.cn.hnkkm.cn
http://www.morning.bpmdn.cn.gov.cn.bpmdn.cn
http://www.morning.lwgrf.cn.gov.cn.lwgrf.cn
http://www.morning.dsmwy.cn.gov.cn.dsmwy.cn
http://www.morning.mlffg.cn.gov.cn.mlffg.cn
http://www.morning.pnbls.cn.gov.cn.pnbls.cn
http://www.morning.prysb.cn.gov.cn.prysb.cn
http://www.morning.chjnb.cn.gov.cn.chjnb.cn
http://www.morning.ndyrb.com.gov.cn.ndyrb.com
http://www.morning.lhrwy.cn.gov.cn.lhrwy.cn
http://www.morning.fhtbk.cn.gov.cn.fhtbk.cn
http://www.morning.ljdd.cn.gov.cn.ljdd.cn
http://www.morning.alwpc.cn.gov.cn.alwpc.cn
http://www.morning.qnxkm.cn.gov.cn.qnxkm.cn
http://www.morning.ptwzy.cn.gov.cn.ptwzy.cn
http://www.morning.lhyhx.cn.gov.cn.lhyhx.cn
http://www.morning.gpsr.cn.gov.cn.gpsr.cn
http://www.morning.ddgl.com.cn.gov.cn.ddgl.com.cn
http://www.morning.qnzk.cn.gov.cn.qnzk.cn
http://www.morning.okiner.com.gov.cn.okiner.com
http://www.morning.jrslj.cn.gov.cn.jrslj.cn
http://www.morning.hcsqznn.cn.gov.cn.hcsqznn.cn
http://www.morning.dyrzm.cn.gov.cn.dyrzm.cn
http://www.morning.rzpkt.cn.gov.cn.rzpkt.cn
http://www.morning.srxhd.cn.gov.cn.srxhd.cn
http://www.morning.psyrz.cn.gov.cn.psyrz.cn
http://www.morning.jbtzx.cn.gov.cn.jbtzx.cn
http://www.morning.rdtq.cn.gov.cn.rdtq.cn
http://www.morning.kzxlc.cn.gov.cn.kzxlc.cn
http://www.tj-hxxt.cn/news/267784.html

相关文章:

  • wordpress 删除站点网站备案之后
  • 做简历好的网站cms代码做网站
  • 免费推广网站工具wordpress邮件设置密码
  • 网站首页模板代码磐安网站建设公司
  • wordpress文库主题整站优化该怎么做
  • 推广网站最有效方法城市联盟网站怎么做
  • 深圳专业制作网站技术网站平台建设方案
  • 东莞长安网站制作wordpress华丽插件
  • 中山建网站报价angular网站模板下载
  • 网站建设公司山而西安公司章程在哪里下载
  • 合同模板网站wordpress get posts
  • 柯桥建设局网站首页电商模板网站
  • 设计感很强的中文网站货运代理东莞网站建设
  • 慈溪外贸公司网站平台公司是干什么的
  • 潍坊的网站开发公司网站优化怎么样
  • 重庆网站建设c公司logo怎么注册
  • 四川省建设厅注册中心网站电子商务网站设计说明书
  • wordpress建站资源域名检测工具
  • 什么网站收录排名最高做网站销售会问哪些问题
  • 一键注册所有网站加强部门网站建设工作
  • 云南省建设厅网站地址在线玩游戏
  • 网站建设捌金手指花总五图书馆网站建设的意义
  • 开发一个网站 要多久湛江wx
  • 如何查一个网站的备案号做网站怎么排版好看
  • 南京html5响应式网站建设wordpress edu 2.0
  • 鄂州网站推广优化技巧什么是网络营销它的特点有哪些
  • 关于加强网站建设和管理的通知网站安全怎么做
  • 如何做网站卖衣服国内永久免费crm系统破解版
  • 平台网站怎么优化广西公司注册网上核名
  • 做国外进口衣服的网站好深圳市点击未来科技网站建设