
springcloud2
zhaoyang10
技术人员要成为最懂业务的技术专家
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
微服务 Spring Cloud 2021 Spring Boot 2.7.x Java JDK8升级到JDK17研究
一文详解|从JDK8飞升到JDK17原创 2023-02-14 20:27:59 · 9277 阅读 · 0 评论 -
nacos springcloud2 动态修改配置导致eureka注册中心服务实例下线问题解决
Spring Cloud Eureka服务注册springcloud 和apollo配置中心一起使用时踩到的一个坑原创 2021-07-26 16:31:16 · 1716 阅读 · 5 评论 -
hystrix 配置中心动态配置
Feign-hystrix的配置,有了Apollo,还用Archaius吗转载 2020-12-24 11:15:12 · 587 阅读 · 0 评论 -
springcloud zuul filter自定义
Spring Cloud Zuul实现多级自定义Filter原创 2020-09-10 10:41:02 · 175 阅读 · 0 评论 -
Spring Cloud2 知识点整理
入门 Spring Cloud 常用组件学习原创 2020-08-18 18:07:58 · 150 阅读 · 0 评论 -
springboot2 AOP切面实现打印任意类的方法入参、出参、耗时
功能:不但可以打印Controller方法里的入参和出参,也能打印Service类或任意一个类里的方法入参和出参。注意: AOP默认如果同一个类有A方法、B方法,如果A调用了B, 则B方法上的注解不生效,必须是非同类的发起的调用方法注解才生效。/** * 日志切面注解 * * @author zhaoyang10 * @date 2020/7/27 */@Retention(RetentionPolicy.RUNTIME)@Target({ElementType.METHOD})@D原创 2020-07-27 20:24:08 · 2583 阅读 · 0 评论 -
SpringCloud2 动态创建FeignClient
SpringBoot动态创建FeignClient,根据Eureka服务名调用服务转载 2020-07-24 16:10:58 · 2349 阅读 · 1 评论 -
java8 @FunctionInterface 实现模板方法设计模式 业务重试封装
java8 @FunctionInterface 实现模板方法设计模式,公共方法的封装:比如业务重试使用spring-retry @Retryable 注解/** * 通用回调函数接口 * * @author zhaoyang10 * @date 2020/07/23 */@FunctionalInterfacepublic interface CallBack<T> { /** * 执行回调操作的方法 */ T call();}/原创 2020-07-23 14:56:44 · 1080 阅读 · 1 评论 -
springcloud2 jetcache配置和使用总结
springboot2 集成缓存jetcacheSpring Boot 2.1.4整合JetCache lettuce缓存框架实现本地caffeine远程redis存储原创 2020-07-21 14:38:32 · 1744 阅读 · 0 评论 -
springcloud RestTemplate 用法详解汇总
SpringCloud–RestTemplate 接口调用原创 2020-07-20 17:57:41 · 281 阅读 · 0 评论 -
@ConditionalOnProperty 控制Configuration是否生效
@ConditionalOnProperty来控制Configuration是否生效原创 2020-07-17 12:44:14 · 203 阅读 · 0 评论 -
开源单元测试 Mock工具
Spring Boot 单元测试 Test 入门原创 2020-04-14 16:28:11 · 783 阅读 · 0 评论 -
springcloud Hystrix线程池隔离降级
深入 Hystrix 线程池隔离与接口限流线程池隔离线程池看似很美好,但也会带来一些问题。如果我们很多业务都依赖于同一个线程池,当其中一个业务因为各种不可控的原因消耗了所有的线程,导致线程池全部占满。这样其他的业务也就不能正常运转了,这对系统的打击是巨大的。比如我们 Tomcat 接受请求的线程池,假设其中一些响应特别慢,线程资源得不到回收释放;线程池慢慢被占满,最坏的情况就是整个...原创 2019-12-17 16:51:43 · 894 阅读 · 0 评论 -
spring cloud2 feign get 请求 对象参数 多个参数传递 重试
https://www.jianshu.com/p/085c11e5722f原创 2019-10-22 14:29:13 · 1276 阅读 · 0 评论 -
consul 安装与实现
consul安装使用与常用命令https://blog.csdn.net/u010046908/article/details/61916389consul服务治理实现https://segmentfault.com/a/1190000012245512原创 2019-01-04 22:31:15 · 193 阅读 · 0 评论 -
Feign 权限验证
https://www.cnblogs.com/yjmyzz/p/spring-cloud-feign-demo.html原创 2019-06-12 15:54:36 · 2436 阅读 · 0 评论 -
spring cloud zuul 修改request header
springcloud zuul 修改转发传递的参数https://blog.csdn.net/u012903926/article/details/81510272SpringCloud :zuul 传递 headerhttps://blog.csdn.net/zzhuan_1/article/details/83856164原创 2019-06-27 18:59:44 · 2240 阅读 · 0 评论 -
spring cloud eureka pause shutdown service-registry 优雅下线重启总结
Spring cloud服务如何做到优雅下线https://blog.csdn.net/yang920106/article/details/79081740原创 2019-06-27 19:09:10 · 2927 阅读 · 0 评论 -
spring boot actuator 监控
spring-boot2.0.X 系统原生信息监控https://blog.csdn.net/smd2575624555/article/details/80453935原创 2019-06-27 19:10:01 · 1247 阅读 · 0 评论 -
Spring Cloud参数优化实战
https://blog.csdn.net/forezp/article/details/83999975转载 2019-08-08 16:02:12 · 204 阅读 · 0 评论 -
spring cloud 微服务架构 核心组件
这次要是讲不明白Spring Cloud核心组件,那我就白编这故事了https://mp.weixin.qq.com/s/hjYAddJEqgg3ZWTJnPTD9g转载 2019-08-19 17:21:07 · 280 阅读 · 0 评论 -
spring cloud zuul nacos 实现动态路由
https://mp.weixin.qq.com/s/9fR-hgJ69R1iiYXiARMTLw原创 2019-09-29 14:31:59 · 707 阅读 · 0 评论 -
Spring Cloud Feign Jackson自定义配置
Spring Cloud Feign 默认支持Spring MVC的注解 使用相同的HttpMessageConverters类转换官方文档说明:Spring Cloud adds support for Spring MVC annotations and for using the same HttpMessageConverters used by default in Spring ...转载 2019-04-30 17:37:39 · 7088 阅读 · 0 评论 -
spring could zuul 超时重试
Zuul超时问题,微服务响应超时,zuul进行熔断Spring Cloud各组件超时总结Zuul网关Ribbon重试SpringCloud重试机制配置zuul 重试设置原创 2019-04-30 14:40:16 · 910 阅读 · 1 评论 -
spring cloud eureka教程汇总
原创 2019-04-18 19:07:18 · 175 阅读 · 0 评论 -
重试总结 spring retry 注解重试
在Spring Boot中使用Spring RetrySpringboot 整合Retry 实现重试机制spring retry 注解重试 如何优雅的进行重试支持注解的 java 重试框架 基于spring-retry和guava-retryspring boot / cloud (七) 使用@Retryable来进行重处理JAVA如何优雅的重试?@Retryable(spring的重试机制)还在手写重试,不妨试试Spring Retry(二)自己实现简单重试int times = 3;M原创 2019-01-04 22:35:20 · 1234 阅读 · 1 评论 -
Spring Cloud中Hystrix 线程隔离导致ThreadLocal数据丢失
http://www.spring4all.com/article/948转载 2019-01-04 22:33:18 · 431 阅读 · 0 评论 -
Spring Cloud oauth2 认证授权 单点登录
http://www.wisely.top/2017/06/14/spring-cloud-oauth2-zuul/原创 2019-01-04 22:33:04 · 740 阅读 · 0 评论 -
Feign ribbon hystrix 超时问题总结
https://blog.csdn.net/qwlzxx/article/details/77163268原创 2019-01-04 22:24:43 · 2271 阅读 · 0 评论 -
spring cloud hystrix 线程隔离 线程池
https://github.com/crossoverJie/JCSprout/blob/master/MD/ThreadPoolExecutor.md转载 2019-01-04 22:24:02 · 2601 阅读 · 0 评论 -
springboot Shiro 单点登录使用配置教程
http://blog.csdn.net/liuchuanhong1/article/details/76850181?utm_source=gold_browser_extension原创 2018-12-06 09:56:18 · 8785 阅读 · 0 评论 -
邮件发送结合Thymeleaf渲染模板
编写模版example.html &amp;lt;!DOCTYPE html&amp;gt; &amp;lt;html xmlns:th=&quot;http://www.thymeleaf.org&quot;&amp;gt; &amp;lt;html lang=&quot;en&quot;&amp;gt; &原创 2018-12-07 11:44:59 · 1584 阅读 · 0 评论 -
springboot mail 邮件发送
https://www.cnblogs.com/ityouknow/p/6823356.html转载 2018-12-07 11:45:07 · 293 阅读 · 0 评论 -
Feign 工作原理及最佳实践
https://blog.csdn.net/neosmith/article/details/52449921https://blog.csdn.net/yejingtao703/article/details/77748190原创 2019-01-04 22:35:35 · 344 阅读 · 1 评论 -
spring cloud mac笔记
服务注册中心 eureka客户端负载均衡 ribbonAPI网关 zuulREST调用 feign容错处理 hystrix统一配置中心 config服务跟踪 sleuth监控系统 zipkin消息驱动 streambus 消息总线,配合Config仓库修改的一种Stream实现。是集群收集器 turbinedashboard hystrix仪表盘,监控集群模式和单点模式,其中...原创 2019-01-05 18:03:33 · 569 阅读 · 0 评论 -
微服务网关Zuul迁移到Spring Cloud Gateway教程汇总
原创 2019-01-24 15:17:46 · 2181 阅读 · 0 评论 -
Feign设置动态header
Feign动态设置HeaderFeign设置全局headerFeign 调用接口是经常会忘header信息,再次介绍两种忘header里面添加信息的方式:1.通过直接在请求上,或者在类上添加Headers的注解@Headers({"Content-Type: application/json","Accept: application/json",Accept {contentType}})@PostMapping(value = "/card-blank/batch-create")Respo原创 2019-04-09 16:50:37 · 20533 阅读 · 1 评论 -
springboot2 统一全局异常处理 参数校验 Validation
参数校验及异常处理原创 2019-01-04 22:25:35 · 3698 阅读 · 1 评论 -
使用Feign的方式访问Zuul网关
http://eimsteim.github.io/2018/04/24/使用Feign的方式访问Zuul网关/转载 2019-03-11 10:29:55 · 5386 阅读 · 0 评论 -
SpringCloud SpringBoot 同步调用、异步调用、响应式调用
https://blog.csdn.net/youlangta/article/details/79153439原创 2019-01-25 10:09:14 · 6613 阅读 · 0 评论