Getting started with the latest version of SpringCloud Gateway
background
Last time How to select online Spring Boot, Spring Cloud and Spring Cloud Alibaba versions as well as Zuul and Gateway request IO model comparison (WebFlux advantages) and Reactor model analysis
Select the Gateway in the micro service to use the Gateway. Next, let's build a simple Gateway to use
Introduction to spring cloud ga ...
Posted by CostaKapo on Thu, 09 Dec 2021 08:11:27 +0100
SpringBoot prints global logs through AOP
Common notes
1,@Before
When you decorate a method, it is treated as a Before enhancement When you use the @ Before modifier, you need to specify a value attribute value, which specifies a pointcut expression (either an existing pointcut or a pointcut expression can be defined directly) to specify which pointcuts the enhancement processing wil ...
Posted by allinurl on Thu, 09 Dec 2021 06:49:56 +0100
SpringBoot+Mybatis uses Redis as the secondary cache to implement and solve the problem that the cache [call clear() method] cannot be updated when deleting / modifying / adding.
1, Build environment
Configure Maven.Spring boot integrates Redis.SpringBoot integrates Mybatis.
The parent pom.xml file is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven ...
Posted by JustGotAQuestion on Thu, 09 Dec 2021 02:21:30 +0100
SpringBoot and web components
SpringBoot and web components
This chapter explains three contents: interceptor, servlet and filter
Interceptor
Interceptor is an object in spring MVC, which can intercept requests to Controller There are system interceptors in the framework. You can also customize the interceptors to realize the pre-processing of requests
Implementing cust ...
Posted by vbracknell on Wed, 08 Dec 2021 22:33:40 +0100
SpringBoot: operating principle - Crazy God
How exactly does the hellospprinboot we wrote earlier run? For Maven project, we usually start from the pom.xml file;
pom.xml
Parent dependency
It mainly depends on a parent project, which mainly manages the resource filtering and plug-ins of the project!
<parent>
<groupId>org.springframework.boot</groupId>
< ...
Posted by missy3434 on Wed, 08 Dec 2021 01:21:13 +0100
The past and present life and application practice of Dubbo, a distributed service governance framework
Dubbo's background
Dubbo has been open source for nearly 10 years and has been widely used in major domestic enterprises. What magic is it worth pursuing? This article gives you a detailed description.
Requirements of large-scale service for service governance
When enterprises begin large-scale service, the disadvantages brought by remote ...
Posted by williamg on Tue, 07 Dec 2021 16:07:04 +0100
Mybatis framework (spring boot simplifies mybatis) -- 2
catalogue
1. Spring boot simplifies Mybatis
1.1 project integration
1.1.1 create project
1.1.2 import jar package
1.1.3 delete redundant files
1.1.4 description of main startup exceptions
1.1.5 modify YML configuration file and pojo class
1.1.6 submit Mapper interface to container management
1.1.7 edit test class
2. Ba ...
Posted by blacklotus on Tue, 07 Dec 2021 13:13:03 +0100
Spring boot integration log4j2
First, let's talk about why to reference logs:
1. Background introduction
Log4j may be the most commonly used log generation dependent jar package. Of course, there are other log generation jar packages, such as log4j2, and so on. South is System.out.print/println, which is our common console printing method.
Log4j is an open source project ...
Posted by Jbert2 on Tue, 07 Dec 2021 11:04:37 +0100
Solon Cloud Distributed Development Suite checklist and quick overview
Solon Cloud is a series of interface standards and configuration specifications. Solon Cloud provides a simple and convenient programming mode for common distributed system modes to help developers build elastic, reliable and coordinated applications. Solon Cloud is built on Solon, which makes it easy for developers to start and quickly apply i ...
Posted by emmbec on Tue, 07 Dec 2021 06:58:00 +0100
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