Common Spring Boot Notes

Preface Spring Boot Common Annotations Tip: The following is the main body of this article. The following cases can be used as reference. 1. @SpringBootApplication          This note is the cornerstone of the Spring Boot project, which is added by default when creating the Application for the ...

Posted by louisA2A on Mon, 06 Dec 2021 00:19:45 +0100

Getting started with Spring Cloud Zuul

(picture from network)   With the increasing scale of microservices, the following problems will appear in the microservice system From the perspective of operation and maintenance, the client sends a service request, which is forwarded to different service instances through the routing of F5,Nginx and other devices through load balancin ...

Posted by Bojan86 on Fri, 03 Dec 2021 14:07:00 +0100

Spring cloud stream message driven

Message driven overview What is Spring Cloud Stream? Officially, Spring Cloud Stream is a framework for building message driven microservices. Applications interact with binder objects in Spring Cloud Stream through inputs or outputs. We configure binding, and the binder object of Spring Cloud Stream is responsible for interacting with the mes ...

Posted by spartan789 on Fri, 03 Dec 2021 07:54:49 +0100

OpenFeign -- declarative call to remote method -- spring cloud

6.OpenFeign service interface call 6.1. General 6.1.1. What is openfeign Feign is a declarative web service client, which makes it very easy to write a web service client. You just need to create an interface and add annotations on the interface Spring cloud encapsulates feign to support spring MVC standard annotations and HttpMessageConver ...

Posted by dhaselho on Tue, 30 Nov 2021 12:33:43 +0100

Spring Cloud Alibaba technology stack

Spring Cloud Alibaba Dubbo 1, Project introduction Dubbo Spring Cloud is developed based on Dubbo Spring Boot 2.7.1 and Spring Cloud 2.x. whether the developer is a Dubbo user or a Spring Cloud user, it can be easily controlled and the application can be migrated upward at a cost close to "zero". Dubbo Spring Cloud is committed to s ...

Posted by jaygattis on Mon, 29 Nov 2021 06:29:06 +0100

Microservices - message bus SpringCloud Bus

1. why The server of the configuration center in the previous article can pull the real-time changed configuration from the remote warehouse, but the client cannot directly update the configuration. It needs to send a post request to the client to refresh the configuration (/ Actor / refresh). When there are few client microservices, it can ac ...

Posted by hungryOrb on Sun, 28 Nov 2021 22:12:09 +0100

Detailed explanation of RequestBodyAdvice and ResponseBodyAdvice, @ ControllerAdvice annotation

overview RequestBodyAdvice RequestBodyAdvice is an interface provided by spring mvc4.2, which allows the request body to be read and converted into an object, and takes the processing result object as the @ RequestBody parameter or the @ HttpEntity method parameter. It can be seen that its scope of action is: Parameters marked with @ RequestB ...

Posted by hookit on Sat, 27 Nov 2021 05:25:33 +0100

[Chapter 18] - Maven Eclipse's b2b2c e-commerce technology summary of Spring Cloud live mall

Maven Eclipse Eclipse provides a good plug-in   m2eclipse   , the plug-in can integrate Maven and Eclipse. Maven is included in the latest Eclipse. Let's open windows - > preferences. If so, the following screen will appear: Here are some features of m2eclipse: You can run Maven's target files on the Eclipse environment.You can ...

Posted by Mr Chew on Wed, 24 Nov 2021 05:10:09 +0100

Error when calling the Nacos client: failed to create cache dir

  Problem background: In our project, the Gateway is used to realize the diversion of microservices, that is, to control the proportion of traffic to different instances of a microservice. Therefore, many methods to call Nacos API are written in geteway. When deploying a new environment, the following errors are reported. Our server uses k8s an ...

Posted by stevefriedman71 on Tue, 23 Nov 2021 15:47:39 +0100

Springcloud, Nacos service registration, load balancing Ribbon, http client Feign

        Spring cloud is a complete set of framework for implementing microservices based on spring boot. It provides such components as configuration management, service discovery, circuit breaker, intelligent routing, micro agent, control bus, global lock, decision-making, distributed session and cluster state management. ...

Posted by brad_fears on Sun, 21 Nov 2021 01:54:55 +0100