Spring Cloud Gateway Extension Support Dynamic Current Limitation

I shared an article before. How to Play with Spring Cloud Gateway's Native Interface Current Limiting The core is to rely on the current limiting filter provided by Spring Cloud Gateway by default Deficiencies of native RequestRate Limiter collocation method spring: cloud: gateway: routes: - id: requestratelimiter_route ...

Posted on Sun, 28 Jul 2019 23:54:49 -0700 by ecaandrew

Black Horse Programmer Tenth Power Micro-service Project Development Practice, Tenth Power Project Spring Cloud Preliminary Exploration

1. Development of Eureka Server (1) Create tensquare_eureka module (2) Introducing a Spring Cloud version that relies on the parent project pom.xml <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.cloud</ ...

Posted on Sun, 28 Jul 2019 23:48:24 -0700 by phpusr

Spring Boot 2.x: Integrating Mybatis-Plus

brief introduction Mybatis-Plus is a persistent framework developed by Chinese people on the basis of Mybatis. And won the most popular Chinese software TOP5 in Open Source China in 2018 What kind of chemical reactions do Spring Boot and Mybatis-Plus, which also aim to simplify development, produce?Next, let's take a look at the efficiency im ...

Posted on Sun, 28 Jul 2019 19:29:02 -0700 by errtu

Extension of spring Source Learning Container

In previous chapters, we have been parsing the BeanFactory interface and its default implementation, XmlBeanFactory, for example, but spring also provides another interface, Application Context, to extend existing functions in BeanFactory.Both ApplicationContext and BeanFactory are used to load bean s, but in contrast, ApplicationContext provid ...

Posted on Sun, 28 Jul 2019 06:48:13 -0700 by Sno

Simple Analysis of Springboot Automatic Configuration

Springboot uses version 2.1.6.RELEASE.Simply put, Springboot uses BeanFactoryPostProcessor (specifically the Configuration ClassPostProcessor class) as the entry, which is automatically configured with annotations.It's helpful to understand BeanFactoryPostProcessor and Annotated Element Utils first. Begin with ___________. First, take a look at ...

Posted on Sun, 28 Jul 2019 06:20:24 -0700 by msing

Spring method level data validation: @Validated

Every sentence In Deep Work, the author puts forward a formula: high quality output = time * concentration. So high quality output does not depend on time, but on efficiency. Relevant Reading [Xiaojia Java] Deep understanding of data validation: Java Bean Validation 2.0 (JSR303, JSR349, JSR380) Hibernate-Validation 6.x use caseKnow more about ...

Posted on Fri, 26 Jul 2019 23:20:30 -0700 by EricC

Three Implementations and Explanations of Java Proxy Model

When an object is not suitable or can not be directly referenced by other objects, a proxy object can be generated for that object. The proxy object has all the functions of the proxy object, so that other objects can meet their own needs when using the proxy object. Static proxy When a static proxy is used, it needs to define interfaces or par ...

Posted on Fri, 26 Jul 2019 03:22:43 -0700 by thors1982

Design Patterns-Prototype Patterns

Prototype Pattern: Used to create duplicate objects while ensuring performance. This type of design pattern belongs to the creation pattern, which provides the best way to create objects. This pattern implements a prototype interface for creating clones of current objects. This pattern is used when ...

Posted on Wed, 24 Jul 2019 21:23:54 -0700 by quiksilver

dubbo+zookeeper sample record

Tip: To see the example directly, skip to three 1. Development of project architecture Traditional mvc architecture projects write the entire system functionality into one project and deploy it on one machine. As the number of users increases, a single project server cannot withstand a surge of user requests and needs to increase the number o ...

Posted on Wed, 24 Jul 2019 09:54:57 -0700 by majocmatt

SpringBoot Creates Multi-Module Projects and Problems

First: Create a SpringBook multi-module project (created using idea tools here) 0. Let's start with the organization of this project: This project has the following modules: common [public], entity [entity class], dao [data access], service [business], controller[api interface 1],sys[api interface ...

Posted on Tue, 23 Jul 2019 00:29:55 -0700 by kooper