Thread pool in SpringBoot

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 pool Th ...

Posted by WildcatRudy on Sat, 04 Sep 2021 02:29:57 +0200

About proxy pattern and spring AOP

Proxy mode (proxy) Agent mode is a structural design mode. It provides an agent (agent class) for other objects (delegate class) to control access to the original object, and allows some processing before and after submitting the request to the object, such as preprocessing the message for the delegate class, filtering and forwarding the m ...

Posted by lol on Thu, 02 Sep 2021 21:10:19 +0200

Spring Boot 2 learning notes: quick use -- HelloWorld project

1. Get started HelloWorld 1.1 system requirements Java 8 uses java -version to view Maven 3.3 + viewing with mvn -v You must check the Maven version used in the idea, because the idea binds a maven 3 by default 1.2 create maven project and introduce dependency <!--Introduce parent project for version control--> <parent> ...

Posted by DeathStar on Thu, 02 Sep 2021 01:09:26 +0200

SpringCache of grain mall

summary spring has defined Cache and CacheManager interfaces since 3.1 to unify different caching technologies. It also supports the use of JCache(JSR-107) annotations to simplify our development The implementation of Cache interface includes RedisCache, EhCacheCache, ConcurrentMapCache, etc Each time a method requiring caching is called, spr ...

Posted by hitman6003 on Wed, 01 Sep 2021 20:14:23 +0200

SpringBoot implements multiple data source configuration

Spring boot for multi data source configuration springBoot implements the configuration of multiple data sources application.properties Configure two data sources in spring.datasource.primary.url=jdbc:mysql://localhost:3306/test1 spring.datasource.primary.username=root spring.datasource.primary.password=root spring.datasource.primary.driv ...

Posted by AtomicRax on Mon, 20 Jul 2020 18:01:36 +0200

springboot Actual Warfare Registered filter s and listener s

Application Scenarios There are special processes in your project that require filters and listeners, such as the spring Framework Character Filter CahracterEncoding Filter. code implementation MyFilter.java @WebFilter(urlPatterns = "/*",description = "custom filter") public class MyFilter implements Filter { ...

Posted by PeeJay on Thu, 16 Jul 2020 17:00:45 +0200

Overview of springMVC's ability to download Excel tables

spring provides encapsulation classes for Excel DownloadsOrg.springframework.web.Servlet.view.document.AbstractExcelView, when implemented, simply implement a class that inherits AbstractExcelView, then override the buildExcelDocument(Map<String, Object> model,HSSFWorkbook workbook, HttpServletRequest request,HttpServletResponse respo ...

Posted by conspi on Wed, 08 Jul 2020 17:02:44 +0200

javaSpring uses maven's initial build step java project

1. Modify in maven projectPom.xmlIntroduce dependencies on spring.<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com ...

Posted by rockintyler on Sun, 05 Jul 2020 16:37:42 +0200

Late night overtime boring, imitating an EventBus based on reflection

Dry point By reading this blog, you can learn about java's reflection mechanism and how to use custom annotations to solve everyday R&D problems based on the spring lifecycle. Problem Description In daily R&D, it is common to encounter an action triggered by Business A and at the same time trigger the action of Business B. This form of ...

Posted by rross46 on Mon, 29 Jun 2020 18:57:16 +0200

Pinyougou project notes: SpringBoot and Ali greater than

Notes on pinyougou project (11) SpringBoot introduce Small example (1) Small examples (2) Integration of springboot and activemq Ali greater than SpringBoot introduce springboot is a back-end full stack framework (excluding page technology) produced by spring organization Role: advocate zero ...

Posted by Imad on Mon, 29 Jun 2020 08:00:08 +0200