Personal experience and source code analysis of filter chain of Spring Cloud Gateway

preface: In fact, I just want to understand the construction principle of the Filter linked list in the spring cloud gateway and the timing of injection into the Bean. If the dynamic injection Filter is a Bean, what timing injection will take effect by default. If it cannot take effect for what reason, which method classes can be forced to ...

Posted by Jip on Tue, 23 Nov 2021 15:35:56 -0800

CockroachDB integrates a simple application of Springboot

preface The company recently switched from Mysql to CockroachDB, so some problems encountered during this period are recorded here 1 development environment CockroachDB version V20.2.3 maven needs to introduce dependencies <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifact ...

Posted by m@ndio on Tue, 23 Nov 2021 07:41:11 -0800

Let the Spring Boot configuration "move"

preface For microservices, configuration localization is a big disadvantage. It is impossible to restart the service every time you need to change the configuration. Therefore, the final solution is to externalize the configuration and host it on one platform, so that multiple modifications can take effect at one time without restarting the se ...

Posted by CiPH on Tue, 23 Nov 2021 05:58:30 -0800

springboot -- jwt (java web token), an open standard (RFC 7519)

summary Background: in traditional Web applications, session is used to store user information. Every time a user passes authentication, the server needs to create a record Save user information, usually in memory. As more and more users pass the authentication, the cost of the server here will be greater and greater. Because the Session is i ...

Posted by mykmallett on Tue, 23 Nov 2021 02:33:24 -0800

SpringBoot Shiro solves the problem that the custom Realm Autowired property in Shiro is empty

SpringBoot is used as the main framework, and Shiro framework is used as the authentication and authorization module.   Before spring boot + Shiro + password encryption, I stepped on a lot of holes, so I walked through the Shiro process and made a record.   1. Introduce Shiro first   Everyone who has used Shiro knows that Shiro uses decorator m ...

Posted by Ryan0r on Mon, 22 Nov 2021 23:27:42 -0800

The most powerful introductory tutorial of SpringBoot takes you quickly into the world of SpringBoot

SpringBoot tutorial 01 introduction 1.1 how spring simplifies development Lightweight and minimally intrusive programming based on POJO, everything is bean;Loose coupling is realized through IOC, dependency injection (DI) and interface oriented;Declarative programming based on AOP and conventions;Reduce style codes through facets and templat ...

Posted by kelly3330 on Mon, 22 Nov 2021 15:49:53 -0800

ShardingSphere+MySQL implementation sub database

ShardingSphere + MySQL implementation sub database 1, About ShardingSphere ShardingSphere is an ecosystem composed of a set of open-source distributed database middleware solutions. It is composed of sharding JDBC, sharding proxy and sharding sidecar (planned). They all provide standardized data fragmentation, distributed transaction and data ...

Posted by frostyhorse on Mon, 22 Nov 2021 08:47:49 -0800

[SpringBoot imitation niuke.com] 03. Develop the registration function

Complex functions should be disassembled into relatively simple functions, which is easy to develop web projects can split functionality on request Click the registration button to jump to the registration page, which is a request; Submit the registration information to the server, and the server will send an activation email, which is a reque ...

Posted by chocopi on Mon, 22 Nov 2021 05:17:32 -0800

It smells good! SpringBoot quickly integrates the monitoring service of SpringBootAdmin console

SpringBootAdmin is a monitoring tool for UI beautifying and encapsulating the actor interface of Spring Boot. It can browse the basic information, detailed Health information, memory information, JVM information, garbage collection information, various configuration information (such as data source, cache list and hit rate) of all monitored Spr ...

Posted by d22552000 on Sun, 21 Nov 2021 02:26:44 -0800

Blog site based on SpringBoot+Vue (starting with 0) --- 5th day

Child's Bay Sunset Build Project   Create Parent Project I'm using a mirror of aliyun here. The spring official I can't really load it, so it's basically aliyun.   Then use jdk8 Since there is a reverse engineering and our business logic module project, we just need to check the Spring Boot in the diagram to build a parent proj ...

Posted by holiks on Sat, 20 Nov 2021 14:22:55 -0800