随笔 - 232
文章 - 1
评论 - 28
阅读 -
60万
随笔分类 - springcloud
将SpringCloud Eureka 服务注册与发现部署到docker
摘要:一、前言 最近在学习docker,顺便把之前学习的spring cloud 部署到Docker 中。至于什么是SpringCloud的服务注册与发现,什么是docker,我这里就不作赘述了。可以先去学习这两部分内容,再来看这篇文章,废话不多说了。直接开始!二、环境准备 JDK 8 MAVEN 3.3
阅读全文
zuul重连配置
摘要:#retry #该参数用来开启重试机制 spring.cloud.loadbalancer.retry.enabled=true #断路器的超时时间,断路器的超时时间需要大于ribbon的超时时间,不然不会触发重试。 hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=10000 #ribbon请求连接的
阅读全文
springboot 通过docker 打包编译镜像
摘要:添加plugin <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instanc
阅读全文
springcloud hystrix 部分参数整理
摘要:hystrix.command.default和hystrix.threadpool.default中的default为默认CommandKey Command Properties Execution相关的属性的配置: hystrix.command.default.execution.isolation.strategy 隔离策略,默认是Thread, 可选Thread|Semaphore...
阅读全文
springboot 零xml集成mybatis
摘要:maven依赖 application.properties 在service中的使用 源码地址
阅读全文
springcloud 显示服务详细健康信息
摘要:pom.xml application.properties 访问 http://desktop-b0b4ikp:2222/health
阅读全文
springcloud 出现unavailable-replicas
摘要:springcloud 出现unavailable-replicas 原因:
阅读全文
EMERGENCY! EUREKA MAY BE INCORRECTLY CLAIMING INSTANCES ARE UP WHEN THEY'RE NOT. RENEWALS ARE LESSER THAN THRESHOLD AND HENCE THE INSTANCES ARE NOT BEING EXPIRED JUST TO BE SAFE.
摘要:主要是由于服务未使用高可用的注册服务中心,调整服务的配置文件的服务注册中心为多个 application.properties 修改为
阅读全文