SpringBoot implements dynamic addition, deletion, start and stop timing tasks

In the spring boot project, you can implement Scheduled tasks through the @ enableshcheduling annotation and @ Scheduled annotation, or through the scheduleconfigurer interface. However, these two methods cannot dynamically add, delete, start and stop tasks. To realize the function of dynamic addition and deletion of start and stop scheduled t ...

Added by sbourdon on Thu, 25 Nov 2021 03:44:31 +0200

spring boot configuration dubbo(properties)

spring boot and dubbo configuration (properties) dubbo and zookeeper work together, but the configuration between them is not mentioned here. 1. There are two ways to configure spring boot and dubbo: 1) spring boot configures dubbo in its own profile application.properties. (This article focuses on this) 2) spring boot combines traditional ...

Added by CGameProgrammer on Wed, 24 Nov 2021 20:26:36 +0200

Simple application of Spring Boot thread pool

preface During the project two days ago, I wanted to improve the performance optimization of inserting tables, because there are two tables. Insert the old table first, and then insert the new table. More than 10000 data are a little slow The thread pool ThreadPoolExecutor comes to mind later, and the Spring Boot project is used. The thread p ...

Added by paragkalra on Wed, 24 Nov 2021 17:30:12 +0200

SpringBoot custom annotation + interceptor implementation

In actual production projects, sensitive data such as ID card information, mobile phone number and real name often need to be encrypted and stored in the database. However, manual encryption and decryption of sensitive information in business code is not elegant, and there may even be wrong encryption, missing encryption, and business personnel ...

Added by loci on Tue, 23 Nov 2021 05:51:55 +0200

Use of SpringBoot global thread pool and local thread pool

  catalogue Thread pool Global thread pool Local thread pool Thread pool         Thread pool is to create some threads first, and their collection is called thread pool. Using thread pool can improve performance. When the system starts, the thread pool creates a large number of idle threads. The program passes a task ...

Added by FangerZero on Tue, 23 Nov 2021 04:49:34 +0200

Blog site based on SpringBoot+Vue (starting with 0) --- Day 7

A day to learn Shiro   Referring to markerHub's open source project, you can take a look and I think the whole development process is complete. Basically it was written in reference to an open source project. I am not very familiar with this part. Even though I have read the theory tutorial, I am not very able to write it out, so I imitate ...

Added by lucie on Tue, 23 Nov 2021 01:41:47 +0200

springboot multi data source configuration instance

Multi data source configuration is mostly used for automatic switching between read-write libraries or master-slave libraries. However, in some cases, it is also necessary to switch data sources in business The core principles of the current mainstream multi data source schemes, whether using the existing framework or customization, are simila ...

Added by jmr3460 on Mon, 22 Nov 2021 02:59:04 +0200

spring boot integrates MyBatis Generator to automatically generate dynamic sql code

Catalog 1. Background 2. Practice 3. Summary 1. Background          When you recently used mybatis, you saw an article that used yml configuration to simplify the xml configuration MyBatis Generator uses by default, and you wanted to use the MyBatis Generator provided by someone to automatically g ...

Added by alexander.s on Sun, 21 Nov 2021 19:02:16 +0200

SpringBoot auto assembly

What is SpringBoot auto assemblyHow does SpringBoot implement automatic assembly Note: the source code analysis part is based on spring 5.0.4, and the springboot version is 2.0.0.RELEASE What is SpringBoot auto assembly     When using SpringBoot to develop applications, we can build a smooth running engineering code very quick ...

Added by quecoder on Fri, 19 Nov 2021 23:25:59 +0200

spring security Learning Notes

spring security Learning Notes 1. Introduction to spring security The core functions of spring security mainly include Certification (who are you)Authorization (what can you do)Attack protection (against identity forgery) Its core is a set of filter chains, which will be automatically configured after the project is started. The core is the ...

Added by iamtheironman on Fri, 19 Nov 2021 20:20:39 +0200