[SpringCloud] - preliminary knowledge
Microservice architecture is an architecture mode. It advocates dividing a single application into a group of small services. Services coordinate and cooperate with each other to provide final value for users. Each service runs in its own process, and services cooperate with each other through lightweight communication mechanism (usually RESTFU ...
Posted by mudasir on Thu, 10 Mar 2022 11:26:51 +0100
When SpringCloud Gateway integrates the interface of a service after Springfox(SwaggerUI3), the request path will not add the corresponding service name problem.
Write in front
When you see this article, it has been integrated by default Springcloud/gateway/springfox(swaggerui3), It's just a problem when testing the service.
Problem description
When accessing through the swagger UI page, we will ignore the service name and directly access the interface mapped by swagger, but we forward it throug ...
Posted by kaos057 on Wed, 09 Mar 2022 15:05:37 +0100
Springcloud distributed micro service E-commerce mall learn from me the common routing assertion factory of springcloud gateway
Spring cloud Gateway has built-in many routing assertion factories, which can be used directly through configuration or combined with multiple routing assertion factories. Next, we will introduce several common routing assertion factory classes.
1) Path route assertion factory
The Path route assertion factory receives a parameter and determ ...
Posted by nakins on Wed, 09 Mar 2022 13:21:08 +0100
Spring Cloud: Sentinel hotspot key current limit + @ SentinelResource
1. Basic introduction
Official website https://github.com/alibaba/Sentinel/wiki/ Hot spot parameter current limiting
2. @SentinelResource
Bottom covering method There are two types: system default and customer defined In the previous case s, the default prompt of sentinel system is used after the outflow problem is limited Use @ SentinelRes ...
Posted by cabaz777 on Tue, 08 Mar 2022 20:51:46 +0100
Spring cloud Nacos and feign report errors: Java lang.IllegalStateException: No Feign Client for loadBalancing defined
Problem description
Recently, during the process of using the latest version of nacos and feign, an error was encountered during startup:
Caused by: java.lang.IllegalStateException: No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalancer?
Puzzled, the previous version of spring cloud did ...
Posted by lisawebs on Tue, 08 Mar 2022 20:32:23 +0100
Take you to quickly understand the microservice gateway!
Gateway concept
Gateway is also known as inter network connector and protocol converter. Gateway realizes network interconnection above the network layer. It is a complex network interconnection device, which is only used for the interconnection of two networks with different high-level protocols. Gateway can be used for both Wan interconnecti ...
Posted by jotgabbi on Tue, 08 Mar 2022 19:16:13 +0100
Talk about how to customize the eureka management interface
preface
Before the launch of nacos, eureka was basically the first choice for the registration center of the whole family bucket system of spring cloud. With the emergence of nacos, more and more micro service projects based on spring cloud use nacos as the registration center, but does this mean that eureka has no place to use force? In fact, ...
Posted by franzy_pan on Tue, 08 Mar 2022 06:57:59 +0100
Spring cloud 2020 - spring cloud stream message driven (note)
Previous: SpringCloud 2020-SpringCloud config distributed configuration center (note)
1. Message driven overview
1.1 INTRODUCTION
Shield the differences between the underlying message middleware, reduce the switching version, and unify the programming model of message Official website: https://spring.io/projects/spring-cloud-stream h ...
Posted by christiank on Tue, 08 Mar 2022 03:52:09 +0100
Spring Cloud Alibaba Seata handles distributed transactions
Spring Cloud Alibaba Seata handles distributed transactions
Distributed transaction management
preface
I don't want to post this blog, because the transaction rollback function is not perfectly implemented. If you see this blog, just understand it. If there is a solution in the future, I'll update it.
Distributed transaction
Before di ...
Posted by coreyp_1 on Mon, 07 Mar 2022 22:55:35 +0100
Dynamically inject beans into Spring containers based on ImportBeanDefinitionRegistrar and FactoryBean
1, Background
We have developed a third-party jar package to integrate with Spring and inject it into the Spring container. In their own jar packages, a custom annotation @ customimport (beanname = "") is added to the classes that need to be added to the Spring container. The value of the beanname attribute represents the name that n ...
Posted by Tonic-_- on Mon, 07 Mar 2022 21:17:55 +0100