77问答网
所有问题
当前搜索:
springboot集群
springboot
项目部署在Kubernetes (k8s)
集群
上的demo
答:
一、新建
springboot
项目 在pom.xml文件添加 注意:springboot自带的spring-boot-maven-plugin不要删,否则会找不到manifast文件。二、建立自己的镜像:Dockerfile 在服务器上安装docker和k8s,参考 https://kuboard.cn/install/install-dashboard.html 并敲入 注意:xxx是你的Docker ID,先在Docker hub上...
解决
springboot
整合redis-cluster下
集群
拓扑不自动刷新问题
答:
一个redis-cluster的三主三从,在其中一个master节点挂了之后,
springboot
的相关
集群
配置信息没有及时刷新。底层客户端使用lettuce,经过查找,lettuce默认是没有开始拓扑更新及读写分离。 安排上 参考文章:https://blog.csdn.net/liukaixiang000/article/details/103702008 ...
Spring Boot
项目中分布式锁实现方案:Redisson
答:
本文主要讨论如何在
Spring Boot
项目中集成Redisson以实现分布式锁。首先,需在项目中引入Redisson依赖,并配置为单节点或
集群
模式。通过Redisson的RLock接口,它支持可重入锁,包括异步、反射式和RxJava2接口,如在查询商品分类树时,利用setnx命令实现分布式锁,但需注意死锁和解锁的问题。Redisson的分布式锁使用...
Springboot
集成Kafka
答:
<groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.12.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <dependencies> <!--
springboot
web依赖 --> <dependency> <groupId>org.springframework.boot</gro...
springboot
整合redis异常汇总
答:
异常1: Cannot retrieve initial cluster partitions from initial URIs [RedisURI [host='192.168.1.1', port=6379]] 这个问题绕了很多弯路,根据网上的很多方案,以为是redis
集群
配置成了主从模式,但是
springboot
连接使用的是cluster模式,最后发现问题出在spring.redis.timeout=0这条配置上。
spring boot
使用 k8s 的 configMap 作为外部配置
答:
spring boot
应用以容器的方式运行在 k8s
集群
上面是非常方便的,但是不同的环境需要不同的配置文件,我们可以使用外部的配置中心,比如 nacos 、 apollo 。 k8s 也提供了 configMap 用来将环境配置信息和容器镜像解耦,便于应用配置的修改。本文主要从以下几个方面介绍 spring boot 使用 ...
SpringBoot
连接redis哨兵模式
答:
【注】redisTemplate实际上是对其他框架的的封装,
springboot
2.x以上底层实现由jedis变为了lettuce。而且lettuce会根据配置自动选择是否用单机或者哨兵模式。【1】 Redis 哨兵模式 设置密码 【2】 sentinel搭建redis
集群
经验总结 【3】
SpringBoot
2.x使用Lettuce连接redis哨兵报错:RedisConnectionException: Unable...
「开源」
springboot
快速开发框架推荐,接私活利器
答:
项目地址: https://gitee.com/YYDeament/88ybg 3、项目名称: JAVA 分布式快速开发平台 项目简介: JAVA 分布式快速开发平台:
SpringBoot
,SpringMVC,Mybatis,mybatis-plus,motan/dubbo分布式,Redis 缓存,Shiro 权限管理,Spring-Session 单点登录,Quartz 分布式
集群
调度,Restful 服务,QQ/微信登录,...
K8s 部署
Spring boot
实践应用指南
答:
对k8s知识有一定了解掌握,能够明白Pod、Deployment、Service、Ingress 具体概念 准备一套可用的k8s环境 准备一个部署的
spring boot
应用 k8s最小单元是Pod, 而Pod 是一组运行的容器,那么容器是怎么运行起来的呢 ? 就是通过构建的镜像。(目前我们使用的容器技术都是基于docker)那先让我们来一...
Spring
Cloud Gateway整合Nacos实现服务路由及
集群
负载均衡
答:
我们都知道 Spring Cloud Gateway 是一个基于
Spring Boot
、 Spring WebFlux 、 Project Reactor 构建的高性能网关,旨在提供简单、高效的API路由。Spring Cloud Gateway基于 Netty 运行,因此在传统Servlet容器中或者打成war包是不能正常运行的。这里我们注册中心选型的是 Nacos ,如果还没有安装Nacos,请...
1
2
3
4
涓嬩竴椤
其他人还搜
springboot应用集群
springboot项目集群部署
springboottask集群
spring boot redis集群配置
spring配置redis集群
应用集群部署
springboot连接es集群
springboot集群部署
springboot集群架构