Stop writing loops! mybatis inserts data in batches and updates the collection list in batches. Isn't it fragrant?

Firstly, the mybatis framework encapsulates sql statements and executes them through tag and attribute parsing in the form of xml. We know that the sql statements inserted into the table are: INSERT INTO table name (column 1, column 2,...) VALUES (value 1, value 2,...) During the insertion process, the database will add transactions by d ...

Added by webtailor on Thu, 30 Dec 2021 14:31:58 +0200

Super detailed!!! Complete knowledge points of SpringCloud (including Eureka, Zookeeper, Consul, Ribbon, Openfeign and Hystrix)

All supporting materials have been uploaded to QQ group: 167356412; if necessary, the group file can be obtained by yourself Spring Cloud China community official website: http://springcloud.cn Spring Cloud China Community Forum: http://bbs.springcloud.cn Spring Cloud China community documentation: http://docs.springcloud.cn 1, Introduc ...

Added by BIGjuevos on Thu, 30 Dec 2021 01:51:43 +0200

Implementation of springboot websokcet tomcat

There are many ways to implement websocket with springboot, and the simplest one is to implement it with @ ServerEndpoint annotation. First, we need to introduce the dependency of websocket: pom. XML (the most important dependency) <!--ws--> <dependency> <groupId>org.springframework.boot</groupId> <artifactI ...

Added by garmann on Wed, 29 Dec 2021 13:50:09 +0200

Share an example of SpringBoot with front and rear end separation, which is suitable for beginners to learn

1. Package structure of SpringBoot 2. Relationship between packages Controller: it is mainly responsible for the process control of specific business modules and will call the interface of Service layer to control business logic DAO: no matter what the framework is, we often interact with the database. If we all have to write SQL statements ...

Added by aisalen on Wed, 29 Dec 2021 12:26:29 +0200

SpringBoot file fragment upload

backgroundRecently, during the operation of several projects, customers have proposed whether the file upload size limit can be set larger. Users often need to upload several G data files, such as drawings and videos, and need to optimize the process of uploading large files, display the progress bar in real time, and expand and upgrade the fra ...

Added by chris.zeman on Wed, 29 Dec 2021 08:02:47 +0200

RabbitMQ switch, dead letter, SpringBoot integration and cluster construction

1. Switch Exchanges 1.1,Exchanges What are Exchanges? The core idea of RabbitMQ messaging model is that messages produced by producers are never sent directly to queues. In fact, usually producers don't even know which queues these messages are delivered to. On the contrary, the producer can only send messages to the exchange. The work of ...

Added by nylex on Wed, 29 Dec 2021 04:10:33 +0200

Mybatis plus - learning notes

reference resources: MyBatis-Plus 1, Quick start 1.0 preparation reference resources MyBatis-Plus Create table statement in! 1.1 add dependency & profile During springboot consolidation: <!-- springboot Unit test dependencies for --> <dependency> <groupId>org.springframework.boot</groupId> ...

Added by velkymx on Tue, 28 Dec 2021 23:24:26 +0200

Spring Boot Integrated Block Chain-Block Chain Service Development Example

This example mainly adds enterprise information into the block chain, and then implements the query of the source of enterprise information. It has functions such as adding, querying, modifying, deleting, viewing history and so on. 1. Prepare a bsn-springboot project pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="htt ...

Added by elentz on Tue, 28 Dec 2021 05:16:35 +0200

3. java SpringBoot yaml configuration injection

yaml grammar learning configuration file SpringBoot uses a global configuration file with a fixed name application.properties Syntax structure: key=value application.yml Syntax structure: key: space value Function of configuration file: modify the default value of SpringBoot automatic configuration, because SpringBoot is automatic ...

Added by phpnewbie81 on Mon, 27 Dec 2021 21:45:26 +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