Filtering and loading of candidate classes during SpringBoot startup

Several initialization points: When calling the SpringApplication constructor and the setInitializers((Collection) getSpringFactoriesInstances(ApplicationContextInitializer.class)) method, the underlying layer calls the loadSpringFactories method, loads the classes under spring.factories, caches them, and then puts the classes of the initializa ...

Posted on Sun, 21 Nov 2021 13:22:58 -0500 by sdat1333

Spring AOP development in SSM / what is AOP in spring/ How did the underlying implementation of AOP get it/ How to write the underlying code of AOP in spring

Write before: Then record your Spring learning journey. If you don't understand it, it is recommended to read it first Previous blog posts , detailed codes can be found in My Gitee warehouse SSM learning Clone download learn to use! 1.9 AOP 1.9.1 AOP introduction 1.9.1.1 concept It is the acronym of Aspect Oriented Programming, that is, asp ...

Posted on Sun, 21 Nov 2021 05:35:17 -0500 by jwilliam

Cereal mall project (learning Note 6)

Chapter V: goods and services - platform attributes 1, Attribute grouping 1. Introduction of front end 1. Copy the code summary of the front end into VScode 2. Because the data encapsulated in the controller's @ RequestMapping("/list/tree") is date, you need to change the data.data of the front-end code to data.date 3. Descript ...

Posted on Sat, 20 Nov 2021 14:40:43 -0500 by sell-traffic

Spring concept and simple use of spring program

Spring is an open source and free framework (container)Spring is a lightweight, non intrusive frameworkInversion of control (IOC), facing section (AOP) Bottom line: Spring is a lightweight control inversion and aspect oriented framework. IOC essence: Control inversion is a design idea, and di (dependencies in dependency injection) is a metho ...

Posted on Sat, 20 Nov 2021 03:52:51 -0500 by DedMousie

Integration of Mybatis into spring principles

Mybatis integrated into spring SqlSessionTemplate integration Spring provides the SqlSessionTemplate class, which is used to inject instances of this class into spring for sql operations. This class implements the sqlsession interface and directly calls the sqlsession method to execute sql. This class holds the SqlSessionFactory class and cre ...

Posted on Fri, 19 Nov 2021 21:08:52 -0500 by veronicabend

Spring Cloud's Hystrix service fault tolerance

Overview of Hystrix Due to the network or its own reasons, the service cannot be guaranteed to be 100% available. If a single service has a problem, thread blocking will occur when calling the service. At this time, if a large number of requests flood in, the thread resources of the Servlet container will be consumed, resulting in servi ...

Posted on Fri, 19 Nov 2021 20:17:41 -0500 by sijis

Understanding of maven's parent inheriting spring boot starter parent

preface In many springboot projects, we can see a piece of code similar to this in pom: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.5.RELEASE</version> </parent> Because the version I use here is 2.3.5. ...

Posted on Fri, 19 Nov 2021 17:43:54 -0500 by insanityonline

Spring state machine StateMachine framework -- enterprise development practice (including code)

Spring state machine StateMachine framework - enterprise development practice (including code) Recently, in my work, my superior sent me a task and asked me to write down the state machine. At first, I was directly ignorant. I didn't know what a state machine was. After listening to the business requirements, I slowly understood that the funct ...

Posted on Fri, 19 Nov 2021 06:40:32 -0500 by shedokan

Spring learning notes 10_ Additional Capabilities of the ApplicationContext

Article reference source: Official Spring Framework documentation preface: The org.springframework.beans.factory package provides basic functions for managing and manipulating bean s, including programmatically The org.springframework.context package adds the ApplicationContext interface, which extends the BeanFactory interface and other interf ...

Posted on Fri, 19 Nov 2021 04:57:22 -0500 by TeamTJ

SpringCloud Alibaba practice from scratch (72) -- principle and application of Enable * annotation for automatic configuration of springboot core

preface SpringBoot provides many annotations starting with Enable. These annotations are used to dynamically Enable some functions, and its underlying principle is to use the @ Import annotation to Import some configuration classes, such as realizing the dynamic loading of beans. This sentence sounds confused, so let's think about a question: ...

Posted on Fri, 19 Nov 2021 04:06:38 -0500 by Paul Arnold