springCloud
老新人
这个作者很懒,什么都没留下…
展开
-
【异常】记一次 springCloud-gateway网关,发生ArrayStoreException错误的解决过程
项目场景:springCloud-gateway 网关服务搭建问题描述:启动报错如下:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webHandler' defined in class path resource [org/springframework/boot/autoconfigure/web/reactive/WebFluxAutoConfigurati原创 2020-11-26 12:08:15 · 519 阅读 · 0 评论 -
分布式事务:两阶段提交与三阶段提交
分布式基础知识分布式的特点:分布性、对等性、并发性、缺乏全局时钟、故障总会发生分布式环境下的各种问题:通讯异常、网络分区、成功失败超时三态、节点故障事务一致性数据库事务包含:原子性(Atomicity)、一致性(Consistency)、隔离性(Isolation)、持久性(Durability)分布式事务:事务的参与者、支持事务的服务器、资源服务器以及事务管理器位于分布式系统的...原创 2019-10-29 15:32:12 · 1129 阅读 · 0 评论 -
【SpringCloud分布式框架搭建】--Centos7服务器环境搭建-------docker 安装mysql8 数据库 主从搭建
[root@localhost /]# docker search mysqlNAME DESCRIPTION STARS OFFICIAL AUTOMATEDmysql ...原创 2019-09-20 16:22:04 · 416 阅读 · 0 评论 -
springCloud框架 consumer端通过FeignClient调用 provider端时,无法成功,而是直接进入对应的fallback
springCloud框架 consumer端通过FeignClient调用 provider端时,无法成功,而是直接进入对应的fallback 。原因:provider 端暴露的接口api, 必须是 post 方式调用。不能使用 get.同样,FeignClient 必须跟provider 端,同样使用 post方式。如下:/************************...原创 2019-06-12 14:10:49 · 4424 阅读 · 0 评论 -
RestFull 的 CRUD 的四种 方式
HTTP 常用的 四种请求方式GET: 获取资源 POST:创建或更新资源 PUT: 创建或更新资源 DELETE:删除资源GET 对应 selectDELETE 对应 delete这里主要描述一下 POST 与 PUT 的区别,即对应的 update 和 insert:在更新资源的操作上,POST 和 PUT 基本相同。在创建资源时,PUT可以指定资源路径,POST无法...原创 2019-06-17 17:16:44 · 861 阅读 · 0 评论 -
浅谈SpringBoot处理url中的参数的注解
1.介绍几种如何处理url中的参数的注解@PathVaribale 获取url中的数据@RequestParam 获取请求参数的值@GetMapping 组合注解,是 @RequestMapping(method = RequestMethod.GET) 的缩写(1)PathVaribale 获取url中的数据看一个例子,如果我们需要获取Url=localhost:8080/h...原创 2019-06-14 10:21:20 · 251 阅读 · 0 评论 -
The bean '.FeignClientSpecification', defined in null, could not be registered. A bean with that nam
错误信息:Description:The bean 'sxbs-mall3.FeignClientSpecification', defined in null, could not be registered. A bean with that name has already been defined in null and overriding is disabled.截图:...原创 2019-06-12 18:23:14 · 8776 阅读 · 3 评论 -
@RequestParam Required String parameter 'delJsonString' is not present
错误代码:2019-06-12 16:05:22.115 WARN 19800 --- [nio-9860-exec-8] Resolved [org.springframework.web.bind.MissingServletRequestParameterException: Required String parameter 'delJsonString' is not prese...原创 2019-06-12 16:16:34 · 1547 阅读 · 0 评论 -
Failed to load property source from location 'classpath:/application.yml 【添加中文注释报错】
错误信息如下:java.lang.IllegalStateException: Failed to load property source from location 'classpath:/application.yml' at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.l...原创 2019-04-25 14:35:12 · 631 阅读 · 0 评论 -
【spring Cloud/spring Boot 2.0】引入链路跟踪Sleuth及Zipkin
我的访问地址:http://localhost:7755/zipkin/注:最后一定要以 " / " 结尾,不然访问不了Zipkin是一种分布式跟踪系统,它有助于收集解决微服务架构中得延迟问题所需的时序数据,它管理这些数据的收集和查找。1. 架构概述跟踪器存在于您的应用程序中,并记录有关发生的操作的时间和元数据。他们经常使用库,因此它们的使用对用户是透明的。例如,已检测的Web服...原创 2019-05-01 22:09:13 · 3161 阅读 · 0 评论 -
springboot 2.0 config client 刷新问题(Post给http://localhost:8080/refresh,返回的是404错误)
问题:手动修改config-client.properties的内容后,刷新 config Server URL: http://localhost:8888/config-client/default/master, 修改的内容可以被显示过来,但是刷新config client URL: http://localhost:8080/, 看到的还是修改前的内容。尝试用postman发...原创 2019-04-25 23:39:00 · 1622 阅读 · 0 评论