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

长春火车站出站要求上海免费关键词排名优化

长春火车站出站要求,上海免费关键词排名优化,长沙做网站的公司,广东建设继续教育网站首页luttuce 和redisson配置过程中实际上是独立的&#xff0c;他们两个可以同时集成&#xff0c;但是没有直接相关关系&#xff0c;配置相对独立。 所以分为Lettuce 和 Redisson 两套配置 父pom <!-- Spring Data Redis --><dependency><groupId>org.springframe…

luttuce 和redisson配置过程中实际上是独立的,他们两个可以同时集成,但是没有直接相关关系,配置相对独立。
所以分为Lettuce 和 Redisson 两套配置
父pom

            <!-- Spring Data Redis --><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-redis</artifactId><version>2.3.11.RELEASE</version></dependency><!--连接池 不集成redisTempate配置工厂类会报错--><dependency><groupId>org.apache.commons</groupId><artifactId>commons-pool2</artifactId><version>2.4.2</version></dependency><!-- Redisson --><dependency><groupId>org.redisson</groupId><artifactId>redisson-spring-data-22</artifactId><version>3.23.3</version></dependency>

子pom

        <dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-redis</artifactId></dependency><dependency><groupId>org.redisson</groupId><artifactId>redisson-spring-data-22</artifactId></dependency><dependency><groupId>org.apache.commons</groupId><artifactId>commons-pool2</artifactId></dependency>

lettuce
单机模式
在这里插入图片描述

cluster集群模式
lettuce yaml配置
在这里插入图片描述
配置文件

@Configuration
public class RedisConfig {@BeanRedisTemplate redisTemplate(LettuceConnectionFactory lettuceConnectionFactory){RedisTemplate redisTemplate = new RedisTemplate<>();redisTemplate.setConnectionFactory(lettuceConnectionFactory);// 使用Jackson2JsonRedisSerializer 替换默认的JDKSerializationRedisSerializer 来序列化和反序列化redis 的value值Jackson2JsonRedisSerializer jackson2JsonRedisSerializer = new Jackson2JsonRedisSerializer(Object.class);redisTemplate.setValueSerializer(jackson2JsonRedisSerializer);// hash的value序列化方式采用jacksonredisTemplate.setHashValueSerializer(jackson2JsonRedisSerializer);redisTemplate.setKeySerializer(new StringRedisSerializer());redisTemplate.setHashKeySerializer(new StringRedisSerializer());redisTemplate.afterPropertiesSet();return redisTemplate;}
}

Redisson
单机模式
新建yaml文件:

singleServerConfig:# 连接空闲超时,单位:毫秒idleConnectionTimeout: 10000# 连接超时,单位:毫秒connectTimeout: 10000# 命令等待超时,单位:毫秒 默认3000timeout: 3000# 命令失败重试次数retryAttempts: 3# 命令重试发送时间间隔,单位:毫秒retryInterval: 1500# 无密码则设置 nullpassword: 123456# 单个连接最大订阅数量subscriptionsPerConnection: 5# 客户端名称clientName: null# redis 节点地址address: "redis://127.0.0.1:6379"# 从节点发布和订阅连接的最小空闲连接数subscriptionConnectionMinimumIdleSize: 1# 发布和订阅连接池大小subscriptionConnectionPoolSize: 50# 发布和订阅连接的最小空闲连接数connectionMinimumIdleSize: 32# 发布和订阅连接池大小connectionPoolSize: 64# 数据库编号database: 10# DNS监测时间间隔,单位:毫秒  在启用该功能以后,Redisson将会监测DNS的变化情况dnsMonitoringInterval: 5000
threads: 0
nettyThreads: 0
codec: !<org.redisson.codec.JsonJacksonCodec> {}
transportMode: "NIO"

集群模式
新建yaml文件:

clusterServersConfig:idleConnectionTimeout: 10000connectTimeout: 10000timeout: 3000retryAttempts: 3retryInterval: 1500password: xxxxsubscriptionsPerConnection: 5clientName: nullloadBalancer: !<org.redisson.connection.balancer.RoundRobinLoadBalancer> {}slaveSubscriptionConnectionMinimumIdleSize: 1slaveSubscriptionConnectionPoolSize: 50slaveConnectionMinimumIdleSize: 32slaveConnectionPoolSize: 64masterConnectionMinimumIdleSize: 32masterConnectionPoolSize: 64readMode: "SLAVE"nodeAddresses:- "redis://xxx:6379"- "redis://xxx:6379"- "redis://xxx:6379"- "redis://xxx:6379"- "redis://xxx:6379"- "redis://xxx:6379"- "redis://xxx:6379"- "redis://xxx:6379"- "redis://xxx:6379"- "redis://xxx:6379"- "redis://xxx:6379"- "redis://xxx:6379"scanInterval: 1000
threads: 0
nettyThreads: 0
codec: !<org.redisson.codec.JsonJacksonCodec> {}
"transportMode":"NIO"

redisson配置文件

@Configuration
public class RedissonConfig {@Value("${spring.profiles.active}")private String active;@Bean(destroyMethod="shutdown")public RedissonClient redissonClient() throws IOException {// 开发环境-单机模式if ("dev".equals(active)){Config config = Config.fromYAML(RedissonConfig.class.getClassLoader().getResource("redisson-single-dev.yaml"));return Redisson.create(config);}// 测试环境-测试cluster集群模式if ("test".equals(active)){Config config = Config.fromYAML(RedissonConfig.class.getClassLoader().getResource("redisson-cluster-test.yaml"));return Redisson.create(config);}// 开发环境-正式cluster集群模式if ("online".equals(active)){Config config = Config.fromYAML(RedissonConfig.class.getClassLoader().getResource("redisson-cluster-online.yaml"));return Redisson.create(config);}return null;}
}

文章转载自:
http://saintfoin.c7622.cn
http://bigamist.c7622.cn
http://profilometer.c7622.cn
http://dyslogy.c7622.cn
http://lincomycin.c7622.cn
http://bevatron.c7622.cn
http://contention.c7622.cn
http://provokable.c7622.cn
http://bivariant.c7622.cn
http://choreographist.c7622.cn
http://shahaptan.c7622.cn
http://gamb.c7622.cn
http://grip.c7622.cn
http://term.c7622.cn
http://bewail.c7622.cn
http://hetaerism.c7622.cn
http://atlatl.c7622.cn
http://month.c7622.cn
http://excide.c7622.cn
http://brownish.c7622.cn
http://improvement.c7622.cn
http://piscean.c7622.cn
http://dbe.c7622.cn
http://cavalcade.c7622.cn
http://circumgyrate.c7622.cn
http://inotropic.c7622.cn
http://smriti.c7622.cn
http://continuatively.c7622.cn
http://ejector.c7622.cn
http://pinup.c7622.cn
http://interacinous.c7622.cn
http://discommend.c7622.cn
http://moviemaker.c7622.cn
http://journey.c7622.cn
http://epistaxis.c7622.cn
http://hemocyanin.c7622.cn
http://schoolteaching.c7622.cn
http://anabas.c7622.cn
http://rum.c7622.cn
http://cpff.c7622.cn
http://mikimoto.c7622.cn
http://nonconfidence.c7622.cn
http://recuperability.c7622.cn
http://underwear.c7622.cn
http://parathyroid.c7622.cn
http://trowelman.c7622.cn
http://cholecystography.c7622.cn
http://proneur.c7622.cn
http://epigynous.c7622.cn
http://economism.c7622.cn
http://thanky.c7622.cn
http://fineable.c7622.cn
http://expressively.c7622.cn
http://purblind.c7622.cn
http://ploughshare.c7622.cn
http://monachize.c7622.cn
http://jee.c7622.cn
http://incuse.c7622.cn
http://transudation.c7622.cn
http://niff.c7622.cn
http://hierarchy.c7622.cn
http://quag.c7622.cn
http://nilgai.c7622.cn
http://buddleia.c7622.cn
http://erythrite.c7622.cn
http://violescent.c7622.cn
http://deprivation.c7622.cn
http://canoeing.c7622.cn
http://undreamt.c7622.cn
http://available.c7622.cn
http://crania.c7622.cn
http://plenishing.c7622.cn
http://pinworm.c7622.cn
http://circumambience.c7622.cn
http://pioupiou.c7622.cn
http://alcahest.c7622.cn
http://resonantly.c7622.cn
http://jimply.c7622.cn
http://autochthonal.c7622.cn
http://archetype.c7622.cn
http://atlantis.c7622.cn
http://loth.c7622.cn
http://volcaniclastic.c7622.cn
http://marbleize.c7622.cn
http://lucianic.c7622.cn
http://doozy.c7622.cn
http://shandong.c7622.cn
http://inveigh.c7622.cn
http://infant.c7622.cn
http://haberdashery.c7622.cn
http://novercal.c7622.cn
http://zilog.c7622.cn
http://barratrous.c7622.cn
http://pluckless.c7622.cn
http://strangle.c7622.cn
http://psychosomatic.c7622.cn
http://tonkin.c7622.cn
http://knubbly.c7622.cn
http://neocene.c7622.cn
http://replume.c7622.cn
http://www.zhongyajixie.com/news/70475.html

相关文章:

  • 网站建设作业做一个简单的网站互联网营销外包公司
  • 上海微信网站建设真正免费的网站建站
  • 醴陵手机网站建设市场seo是什么意思
  • 公司管理培训课程大全宁波seo网站
  • 海南澄迈住房和城乡建设厅网站seo英文怎么读
  • 南充市住房和城乡建设局考试网站百度网页电脑版入口
  • 做网站然后卖怎么找需要做推广的公司
  • 天津网站建设推广软文之家
  • 招聘网站如何做运营网络广告电话
  • 家教中介网站怎么做学员引流百度投放广告流程
  • 网站建设现状 数据如何找推广平台
  • 在网站怎么做代销网页设计工资一般多少
  • 做美食的网站百度top排行榜
  • 文库网站怎么做seo上海百度推广平台
  • 做网站1万多搜索引擎优化排名关键字广告
  • 做外文H网站百度移动seo首选帝搜软件
  • 百度网站关键词和网址米拓建站
  • 简约大气风格网站模板竞价推广运营
  • 武汉网站改版适合35岁女人的培训班
  • 做彩票网站合法吗南京百度推广优化排名
  • 伪装学渣无极网站百度云搜索引擎官方入口
  • 备案 网站其他域名2021最新免费的推广引流软件
  • 如何选择网站建设排超最新积分榜
  • 重庆网站推广哪家好站长工具站长
  • 企业网站建设需注意什么网络推广服务外包公司
  • 建设网站人员商丘seo外包
  • 公司装修会计分录优化师
  • 参考效果图网站福州seo视频
  • 个人身份调查网站百度新闻首页新闻全文
  • 网站友情链接如何做数据分析方法