Spring is based on XML / annotation / automatic assembly

1, Spring assembles beans based on XML The assembly of beans can be understood as dependency injection. The assembly method of beans is also the dependency injection method of beans. Spring The container supports various forms of Bean assembly, such as XML based Bean assembly, Annotation based Bean assembly and automatic assembly.Spring XML ba ...

Posted by Hoppus on Tue, 08 Mar 2022 02:51:44 +0100

DispatchServlet principle of Spring principle

DispatchServlet parsing of Spring MVC Spring MVC sequence diagram The parent class of DispatchServlet is FrameworkServlet, and the parent class of FrameworkServlet is HttpServletBean Core process: Find the init() method of DispatchServlet and locate the init() method of the parent HttpServletBean of its parent class Locate the locatio ...

Posted by tmed on Tue, 08 Mar 2022 02:44:24 +0100

Spring framework learning notes 02 - streamlining spring configuration files with component annotations

I Course introduction Last time, we used the XML configuration file and Spring container to manage Bean objects. Finally, we gave a question: "if we have dozens of classes to create beans and adopt XML configuration, will the Spring configuration file look very bloated? How to solve this problem?", In this talk, we are going to use c ...

Posted by bjoerndalen on Tue, 08 Mar 2022 01:33:29 +0100

SpringBoot Admin2.0 integrated Java diagnostic artifact Arthas practice

The project initially used Arthas for two purposes: Through arthas, we can solve the problem of realizing the performance problem analysis tool of test environment, performance test environment and production environment. By using the combination of jad, mc and redefine functions, the ability of hot update of some node codes in the prod ...

Posted by graziano on Tue, 08 Mar 2022 00:33:21 +0100

SpringBootAdmin build Tutorial 9: microservice development Zookeeper registry integration SpringBootAdmin

In the previous article, we learned how to integrate SpringBootAdmin for monitoring and other operations by using Consul registration discovery in microservices. In this article, we learn how to integrate SpringBootAdmin in Zookeeper registry. Introduction to Zookeeper ZooKeeper is a software project of Apache Software Foundation. It provides ...

Posted by rdub on Mon, 07 Mar 2022 23:46:28 +0100

April 14, 2021 - Spring framework 4

Spring framework 4 What is Spring AOP (aspect oriented programming)? Aspect oriented programming (AOP), similar to object-oriented programming (OOP), is also a programming mode. Spring AOP is a framework based on AOP programming mode. Its use effectively reduces the repeated code between systems and achieves the purpose of loose coupling betw ...

Posted by cLFlaVA on Mon, 07 Mar 2022 22:23:54 +0100

AOP learning record and @ Configuration annotation use

AOP is face to face, why face to face? What operations require AOP programming? The main purpose of Aop is to extract the aspects in the business processing process. It faces a step or stage in the processing process, so as to obtain the isolation effect of low coupling between various parts in the logical process. For example, the most com ...

Posted by robos99 on Mon, 07 Mar 2022 21:37:33 +0100

Dynamically inject beans into Spring containers based on ImportBeanDefinitionRegistrar and FactoryBean

1, Background We have developed a third-party jar package to integrate with Spring and inject it into the Spring container. In their own jar packages, a custom annotation @ customimport (beanname = "") is added to the classes that need to be added to the Spring container. The value of the beanname attribute represents the name that n ...

Posted by Tonic-_- on Mon, 07 Mar 2022 21:17:55 +0100

Spring Boot transaction control

introduction In the process of business development and database operation, we will basically involve the operation of transactions, which can ensure the integrity of business logic. All data access technologies have transaction processing mechanisms. These technologies provide API s to start transactions, commit transactions to complete data ...

Posted by phpn00bf4life on Mon, 07 Mar 2022 20:53:14 +0100

Spring learning notes

This article is a personal note based on the video of crazy God on bilibili 1.Spring 1.1 INTRODUCTION Spring framework is an open source J2EE application framework. It is a lightweight container for managing the life cycle of bean s. It solves many common problems encountered by developers in J2EE development. In short, the purpose of Spr ...

Posted by predator12341 on Mon, 07 Mar 2022 20:31:57 +0100