sunny123456

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
上一页 1 ··· 78 79 80 81 82 83 84 85 86 ··· 172 下一页

2022年9月4日

摘要: @FeignClient注解 Spring Cloud OpenFeign是Spring Cloud团队将原生的Feign结合到Spring Cloud中的产物。从上面原生Feign的使用示列来看,用的注解都是Feign中自带的,但我们在开发中基本上都是基于Spring MVC的注解,不是很方便调用 阅读全文
posted @ 2022-09-04 21:59 sunny123456 阅读(166) 评论(0) 推荐(0) 编辑

摘要: 服务熔断Hystrix高级 1 前言# 我们知道,当请求失败,被拒绝,超时的时候,都会进入到降级方法中。但是进入降级方法并不意味着断路器已经被打开了。此时我们需要Hystrix的监控平台来查看断路器的状态。 2 Hystrix的监控平台# 2.1 概述# 除了实现容错功能,Hystrix还提供了近乎 阅读全文
posted @ 2022-09-04 21:53 sunny123456 阅读(73) 评论(0) 推荐(0) 编辑

摘要: Java实现文件下载Zip压缩 目录 一、 概述 二、代码功能实现 一、 概述 开发过程中碰到一个需求,需要将服务器上的多个文件打包为zip,并进行下载响应到客户端,写了一个Demo总结分享一下,如果有错误希望大家指正! 二、代码功能实现 这里实现只是模式本地文件下载Zip,响应的客户端下载 实现思 阅读全文
posted @ 2022-09-04 21:47 sunny123456 阅读(1408) 评论(0) 推荐(0) 编辑

2022年9月3日

摘要: Insomnia的下载 今天给大家分享一款用于前后端分离,模拟浏览器发送请求的软件Insomnia 1.趣谈 说到前后端分离的软件,我相信很多人都知道十分著名的Postman,如果你已经习惯使用他,那么其实没有下载Insomnia的必要,但是你要是和笔者一样,喜欢Insomnia,那今天笔者分享了自 阅读全文
posted @ 2022-09-03 20:46 sunny123456 阅读(163) 评论(0) 推荐(0) 编辑

摘要: Spring Boot 全局异常处理@ControllerAdvice Spring Boot 全局异常处理@ControllerAdvice 在开发中出现异常后,可能需要一个统一处理的地方,来处理程序出现的异常,针对不同的异常做不同的处理,这里我们通过@ExceptionHandler注解来实现。 阅读全文
posted @ 2022-09-03 20:44 sunny123456 阅读(161) 评论(0) 推荐(0) 编辑

摘要: com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server 报错问题 com.netflix.discovery.shared.transport.Tran 阅读全文
posted @ 2022-09-03 20:43 sunny123456 阅读(300) 评论(0) 推荐(0) 编辑

摘要: SpringBoot启动时报错:The bean 'dataSource', defined in BeanDefinition defined in class path resource SpringBoot启动时报错: The bean 'dataSource', defined in Bea 阅读全文
posted @ 2022-09-03 20:41 sunny123456 阅读(1126) 评论(0) 推荐(0) 编辑

摘要: @ControllerAdvice全局异常处理 Exception,分为运行时异常(RuntimeException)和非运行时异常 可查的异常(checked exceptions): Exception下除了RuntimeException外的异常 不可查的异常(unchecked except 阅读全文
posted @ 2022-09-03 20:28 sunny123456 阅读(365) 评论(0) 推荐(0) 编辑

摘要: spring cloud 多模块打包部署解决坑 前置条件 笔者使用Intellij IDEA进行Spring Cloud项目创建和部署 Intellij IDEA 版本 :IntelliJ IDEA 2019.1.3 (Ultimate Edition) Spring Cloud 版本:Spring 阅读全文
posted @ 2022-09-03 16:03 sunny123456 阅读(751) 评论(0) 推荐(0) 编辑

摘要: spring cloud 和 spring boot引入 版本问题 spring-cloud版本:Finchley.RC1 spring-boot版本:2.0.4.RELEASE 改为: spring-cloud版本:Finchley.RELEASE spring-boot版本:2.0.3.RELE 阅读全文
posted @ 2022-09-03 16:01 sunny123456 阅读(586) 评论(0) 推荐(0) 编辑

上一页 1 ··· 78 79 80 81 82 83 84 85 86 ··· 172 下一页