随笔分类 -  Spring-boot

上一页 1 2 3 4 5 6 7 下一页
SpringCloud学习系列之四-----配置中心(Config)使用详解
摘要:转自:https://blog.csdn.net/qazwsxpcm/article/details/88578076 前言 本篇主要介绍的是SpringCloud中的分布式配置中心(SpringCloud Config)的相关使用教程。 SpringCloud Config Config 介绍 S 阅读全文
posted @ 2020-09-22 15:58 Sharpest
Spring Cloud Config 分布式配置中心
摘要:转自:https://zhuanlan.zhihu.com/p/65654453 在Spring Boot服务中,我们可以通过设置多个profile来配置不同的application-{profile}.yml,然后在启动服务时指定要加载的配置文件spring.profiles.active={pr 阅读全文
posted @ 2020-09-22 15:57 Sharpest
SpringCloud中的断路器(Hystrix)和断路器监控(Dashboard)
摘要:转自:https://www.jb51.net/article/163291.htm 前言 本篇主要介绍的是SpringCloud中的断路器(Hystrix)和断路器指标看板(Dashboard)的相关使用知识。 SpringCloud Hystrix Hystrix 介绍 Netflix创建了一个 阅读全文
posted @ 2020-09-22 15:55 Sharpest
教你在Zuul中增加Filter过滤请求
摘要:转自:http://www.imooc.com/article/295172 教你在Zuul中增加Filter过滤请求 2019.11.08 17:32 2716浏览 上一篇中,我们介绍了如何使用Zuul反向代理请求,这一篇我们介绍如何在Zuul中增加Filter来过滤请求,我们的示例也是延用上一篇 阅读全文
posted @ 2020-09-22 15:52 Sharpest
FEIGN开启对HYSTRIX支持
摘要:转自:https://www.freesion.com/article/236146260/ 阅读全文
posted @ 2020-09-22 15:50 Sharpest
Feign使用Hystrix
摘要:转自:https://www.cnblogs.com/linjiqin/p/10195442.html Feign使用Hystrix开发步骤 1、导入依赖spring-cloud-starter-hystrix 2、消费启动类开启@EnableCircuitBreaker 3、配置yml文件feig 阅读全文
posted @ 2020-09-22 15:49 Sharpest
Spring Boot中使用Redis小结
摘要:转自:https://www.cnblogs.com/guanzhyan/p/8367585.html Spring Boot中除了对常用的关系型数据库提供了优秀的自动化支持之外,对于很多NoSQL数据库一样提供了自动化配置的支持,包括:Redis, MongoDB, 等。 Redis简单介绍 Re 阅读全文
posted @ 2020-09-22 15:47 Sharpest
Spring 中的事件机制 ApplicationEventPublisher
摘要:转自:https://www.littleteacher.cn/archives/spring-zhong-de-shi-jian-ji-zhi-applicationeventpublishe 需求 当用户注册后,给他发送一封邮件通知他注册成功了,然后给他初始化积分,再发放一张新用户注册优惠券等。 阅读全文
posted @ 2020-09-22 15:45 Sharpest
SpringBoot+EasyExcel实现Excel的导出
摘要:转自:http://www.dreamwu.com/post-425.html 今天的积累都是为了更好的明天,加油!我是java程序员可以关注我一起学习哈! 今天心血来潮,突然想起很久以前的一个导出excel的功能,以前用的poi感觉挺麻烦的!今天就简单写下EasyExcel版本的,EasyExce 阅读全文
posted @ 2020-09-22 15:44 Sharpest
SpringBoot–集成验证码kaptcha实现验证码功能
摘要:转自:http://www.souvc.com/?p=2673 SpringBoot–集成验证码kaptcha实现验证码功能 SpringBoot–集成验证码kaptcha实现验证码功能 配置文件详解 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 阅读全文
posted @ 2020-09-22 15:43 Sharpest
Spring Cloud使用Feign调用服务接口
摘要:转自:http://c.biancheng.net/view/5357.html JAVA 项目中接口调用怎么做? 1)Httpclient HttpClient 是 Apache Jakarta Common 下的子项目,用来提供高效的、最新的、功能丰富的支持 Http 协议的客户端编程工具包,并 阅读全文
posted @ 2020-09-22 15:41 Sharpest
Spring cloud ReadTimeout 问题解决
摘要:转自:http://www.mamicode.com/info-detail-2329352.html 今天使用Spring cloud @FeignClient 调用远程服务的时候,出现readTimeout问题,通过找资料解决方式如下 在Spring.properties 配置文件中添加如下属性 阅读全文
posted @ 2020-09-22 15:39 Sharpest
Spring Boot 之事件(Event)
摘要:转自:https://msd.misuland.com/pd/2884250137616454018 Spring 官方文档翻译如下 : ApplicationContext 通过 ApplicationEvent 类和 ApplicationListener 接口进行事件处理。 如果将实现 App 阅读全文
posted @ 2020-09-22 15:38 Sharpest
关于springboot配置DataSource
摘要:转自:https://www.cnblogs.com/toughzcf/p/9835867.html 使用springboot 线程池连接MySQL时,mysql数据库wait_timeout 为8个小时,所以程序第二天发现报错,在url配置了 autoReconnect=true 也不行,查询配置 阅读全文
posted @ 2020-09-22 04:11 Sharpest
SpringBoot配置文件敏感信息加密-jasypt
摘要:转自:https://www.cnblogs.com/xuwenjin/p/10842432.html 使用过SpringBoot配置文件的朋友都知道,资源文件中的内容通常情况下是明文显示,安全性就比较低一些。打开application.properties或application.yml,比如my 阅读全文
posted @ 2020-09-22 04:05 Sharpest
SpringCloud组件:Eureka服务注册是采用主机名还是IP地址?
摘要:转自:https://blog.csdn.net/weixin_42033269/article/details/82840950 我们一直在使用Eureka进行注册服务,然而你有可能很少关心服务在注册到Eureka Server时是采用的主机名的方式?还是IP地址的方式? 构建项目 我们把之前章节 阅读全文
posted @ 2020-09-22 04:04 Sharpest
springboot 使用spring.profiles.active 区分不同环境下配置文件
摘要:转自:https://blog.51cto.com/4923168/2177950 一、新建一个maven 工程 二、在pom.xml文件中加入如下依赖 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www. 阅读全文
posted @ 2020-09-22 04:03 Sharpest
16、springcloud整合Swagger2构建Restful服务的APIs
摘要:转自:https://blog.csdn.net/huangjinjin520/article/details/89740672 Spring Cloud将服务注册到了Eureka上,可以从Eureka的UI界面中,看到有哪些服务已经注册到了Eureka Server上;但是如果想查看当前服务提供了 阅读全文
posted @ 2020-09-22 04:01 Sharpest
7、Hystrix与HystrixDashboard
摘要:转自:https://www.jianshu.com/p/f40acb0d01b2 一、Hystrix的概述 Hystrix 是一个用于处理分布式系统的延迟和容错的开源库,在分布式系统中,许多依赖不可避免的会调用失败,比如 超时,异常等,Hystrix能够保证在一个依赖出问题的情况下,不会导致整体服 阅读全文
posted @ 2020-09-22 03:57 Sharpest
SpringCloud 教程
摘要:转自:https://www.cnblogs.com/nongzihong/p/12674950.html 码农下载:https://git.oschina.net/forezp/SpringCloudLearning github下载:https://github.com/forezp/Sprin 阅读全文
posted @ 2020-09-22 03:56 Sharpest

上一页 1 2 3 4 5 6 7 下一页