openFeign deadly serial 9 asked, who can stand it?

1. Foreword Earlier, we introduced the soul ferry Nacos in Spring Cloud. Compared with its predecessors, it is not only powerful, but also very simple to deploy. Today, we will introduce a component of service invocation: OpenFeign, which is also a cruel role beyond its predecessors (Ribbon and Feign). The article contents are as follows: ...

Posted on Wed, 22 Sep 2021 01:20:08 -0400 by bobthedog

Spring boot establishes restful interface

restful introduction Introduction to restful architecture: RESTful architecture is an architecture formed after the improvement of MVC architecture, which is connected with different services by using pre-defined interfaces. In the RESTful architecture, the browser uses POST, DELETE, PUT and GET to add, DELETE, modify and query the specifi ...

Posted on Mon, 20 Sep 2021 17:01:36 -0400 by zhaohongli

Feign of spring cloud, service communication (declarative REST client)

RestTemplate is used in the previous study of calling between micro services. This chapter will learn Feign to communicate between services FeignClient simplifies the writing of requests and selects which service to use for consumption through dynamic load. All this is realized by Spring dynamic configuration. We don't care about these, just ...

Posted on Sat, 18 Sep 2021 07:02:54 -0400 by scrupul0us

Springboot AOP aspect oriented programming, lower part: use AOP aspect technology to create access logs for API interfaces!

1. Introduction Above, we have learned the basic and related knowledge of AOP aspect oriented programming and learned that it can create monitoring logs for programs without modifying the source code. In this paper, we carry out practice and use AOP aspect technology to create a unified access log for the mainstream restful API interface to re ...

Posted on Wed, 08 Sep 2021 01:45:20 -0400 by perrohunter

Grain College - day 2 - Swagger

1, Swagger2 introduction In the front end and back-end separation development mode, api documents are the best way to communicate. Swagger is a normative and complete framework for generating, describing, invoking, and visualizing RESTful Web services.          1. Timeliness (timely and accurately notif ...

Posted on Tue, 07 Sep 2021 18:57:38 -0400 by steve490

Desensitization mode of Controller interface based on AOP

preface Our background system has received the demand for data desensitization, which requires desensitization display of important information such as mobile phone number and receiving address on some associated pages. That's why we have this desensitization scheme Common scheme Scheme I Add annotations to key DTO s and Vos. When these ...

Posted on Mon, 06 Sep 2021 19:24:49 -0400 by dirty_n4ppy

Spring MVC -- restful addition, deletion, modification and query

      2.2 objectives and methods. Use @ RequestMapping("/emps") to determine what requests to process. In the target method                                 Put the data found in the database into the map, and then spring MVC will put it into ...

Posted on Fri, 03 Sep 2021 23:39:30 -0400 by delldeveloper