SpringBoot scheduled task @ enableshcheduling

1. Import the necessary dependencies in pom.xml: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.1.RELEASE</version> </parent> <dependencies> <!-- SpringBoot Core components --> <dependency& ...

Posted by beginPHP on Thu, 11 Nov 2021 11:40:37 +0100

Spring (continuous update)

Spring xml configuration of spring <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:aop="http:// ...

Posted by Garath531 on Thu, 11 Nov 2021 06:06:42 +0100

SpringBoot startup process of Spring

preface The startup process of SpringBoot is relatively long, which will involve events / listeners of other modules, and these listeners will have their own logic; This paper focuses on the startup process. The more important listeners that have an impact on the overall situation will also be picked up separately to explain its role. The arti ...

Posted by Tremour on Tue, 09 Nov 2021 22:42:23 +0100

Among the 12 vo2dto methods, the pressure measurement data of BeanUtil.copyProperties are the most stretched!

Continue to adhere to the original output, click the blue word to pay attention to me Author: Xiao Fu GeBlog: https://bugstack.cn ❝ Precipitate, share and grow, so that you and others can gain something! 😜 ❞ catalogue 1, Foreword 2, Performance test comparison 3, 12 convers ...

Posted by rotwyla98 on Tue, 09 Nov 2021 09:34:37 +0100

Custom annotations in SpringBoot

annotation 1. Meta annotation Meta annotations are annotations that define annotations. They are the basic annotations provided by Java to define annotations annotationexplain@RetentionIt is an annotation Class, implementing declaration Class, declaration Class and declaration extension@TargetIt is placed on the top of the custom annotat ...

Posted by lanmonkey on Mon, 08 Nov 2021 19:41:51 +0100

Spring source code series -- AOP dynamic proxy source code analysis

The principle of AOP as like as two peas and Mybatis integration into Spring are exactly the same principle. Before reading this article, I suggest reading the last one first. Spring source code series (8) -- how Mybatis is integrated into spring source code analysis https://blog.csdn.net/zxd1435513775/article/details/121180974 1, Spri ...

Posted by mschrank on Sun, 07 Nov 2021 07:17:32 +0100

Spring source code series - how is Mybatis integrated into spring source code analysis

1, Spring startup process reanalysis Configuration class @Configuration @ComponentScan("com.scorpios") @MapperScan("com.scorpios.mapper") public class AppConfig { @Bean public DataSource dataSource() { DruidDataSource dataSource = new DruidDataSource(); dataSource.setUsername("root"); dataSource.setPasswor ...

Posted by xtrafile on Sat, 06 Nov 2021 22:30:16 +0100

New function of spring 5 -- spring Webflux

1. Integrated log framework 2, @ Nullable annotation 3. Functional style GenericApplicationContext 4. Integrate JUnit5 5,Webflux 5.1 introduction to spring Webflux5.2, responsive programming5.3. Webflux execution process and core API5.4, annotation based programming model5.5, based on functional programming model Integrated logging ...

Posted by zuperxtreme on Fri, 05 Nov 2021 21:02:31 +0100

Spring source code series - Bean instantiation and initialization process

https://blog.csdn.net/zxd1435513775/article/details/120935494?spm=1001.2014.3001.5501 Spring source code series (IV) -- function analysis of configuration class postprocessor https://blog.csdn.net/zxd1435513775/article/details/121113933?spm=1001.2014.3001.5501 Spring source code series (6) -- container refresh (Part 2) In Articles ...

Posted by jomama on Thu, 04 Nov 2021 23:25:10 +0100

Implementation of Spring AOP

Before understanding the implementation of Spring AOP, first understand some concepts related to Spring AOPRelated concepts of AOPWhen using Spring for AOP related programming, we often use Advice, PointCut and Advisor to realize the functions we need.AdviceAdvice is an interface defined by the AOP alliance, which defines what we can do at the ...

Posted by Virtuali on Thu, 04 Nov 2021 23:05:20 +0100