Mybatis a simple configuration for data encryption and decryption

Preface: introduce a simple MyBatis encryption and decryption method. Few people mention this method in their daily study and work, so let's talk about it. If you already know this method, ignore this article! 1, Background Sometimes in our database, some sensitive information of users, such as mobile phone number, bank card and other informa ...

Added by NZ_Kiwi on Mon, 27 Dec 2021 21:13:37 +0200

SpringBoot annotation principle, automatic assembly principle, illustrated

Be a positive person, not a positive person. Source: www.cnblogs.com com/jing99/p/11504113. html First, let's look at the main} configuration class of SpringBoot: @SpringBootApplication public class StartEurekaApplication { public static void main(String[] args) { SpringApplication.run(StartEurekaApplication.class, args); ...

Added by Stinger51 on Mon, 27 Dec 2021 19:09:41 +0200

SpringBoot: multi data source configuration based on MyBatis

preface Previously, in the process of using SpringBoot to build background services, we usually access a database and a data source The MQTT service used in the new project needs authentication, but the MQTT service is used by multiple projects, so its authentication database is in a separate database. At this time, we need to configure ...

Added by Dillenger on Mon, 27 Dec 2021 12:20:53 +0200

Spring data redis dynamically switches data sources

Recently, we encountered a troublesome demand. We need a microservice application to access two different Redis clusters at the same time. Generally, we don't use Redis in this way, but the two Redis were originally different business clusters, and now a microservice needs to be accessed at the same time. In fact, we may encounter similar scen ...

Added by MilesStandish on Mon, 27 Dec 2021 10:25:17 +0200

Everyone can learn how to quickly build the Spring MVC framework (IDEA environment, Gradle construction, introduction to xml configuration file) to make the introduction to Spring simple and clear

preface What is MVC mode In the classic MVC mode, m refers to the business model, V refers to the user interface, and C is the controller. The purpose of using MVC is to separate the implementation codes of M and V, so that the same program can use different forms of expression—— An idea of design pattern Spring MVC is a modu ...

Added by wendu on Mon, 27 Dec 2021 08:38:04 +0200

Spring boot and spring listener mode

Recently, I read the source code of SpringBoot and found a strange phenomenon: there are two places in the project with the function of publishing events. One is the SpringApplicationRunListener interface; The other is the publishEvent method of the ApplicationEventPublisher interface, which is implemented by the ApplicationContext interface. T ...

Added by p_h_p on Mon, 27 Dec 2021 06:02:20 +0200

Use of ioc and aop in Spring learning notes

Spring learning notes pom.xml required configuration ​ 1. Specify JDK version <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.8</source> <target>1.8</targ ...

Added by tomm098 on Mon, 27 Dec 2021 04:30:55 +0200

Spring retry framework

preface Some scenarios require us to retry some tasks under abnormal conditions. For example, when calling a remote RPC service, the first call may fail due to network jitter. We can restore normal after several attempts. Spring retry is a spring based retry framework provided by spring, which is very easy to use. Official website address: Gi ...

Added by Zallus on Mon, 27 Dec 2021 03:42:39 +0200

IOC operation Bean Management (annotation based)

1. What is annotation Annotation is a code special tag, format: @ annotation name (attribute name = attribute value, attribute name = attribute value...)Use annotations, which act on classes, properties, and methodsThe purpose of using annotations is to simplify xml configuration 2. Spring provides annotations for creating objects in Bean man ...

Added by leesiulung on Mon, 27 Dec 2021 01:27:06 +0200

Function and use of maven

First, we need to clarify the role of maven: Maven is essentially a project management tool, Abstract the project development and management process into a project object model (POM). Developers only need to make some simple configurations to complete the construction, report and document generation of the project in batches. Using remote war ...

Added by blmg911 on Sun, 26 Dec 2021 06:25:01 +0200