What is the operating principle of Java SPI mechanism?
What is SPI technology
The full name of SPI is Service Provider Interface, which means Service Provider Interface. If we don't write framework code or develop plug-ins, we may not be so familiar with SPI mechanism, but if we read such as Dubbo and JDBC database Driver package, Spring and the recently popular Spring Boot related starter compo ...
Posted by mguili on Mon, 01 Nov 2021 19:58:21 -0700
SpringBoot: introduction to the principle of automatic configuration -- 4
Boot load auto configuration
@SpringBootApplication analysis
@SpringBootConfiguration
@EnableAutoConfiguration
@ComponentScan(
excludeFilters = {@Filter(
type = FilterType.CUSTOM,
classes = {TypeExcludeFilter.class}
), @Filter(
type = FilterType.CUSTOM,
classes = {AutoConfigurationExcludeFilter.class}
)}
)
ssdss@Spr ...
Posted by Accurax on Mon, 01 Nov 2021 09:48:42 -0700
Bean life cycle
The life cycle of a Bean can be divided into four steps
Bean instantiationBean attribute assignmentBean initializationDestroy
In traditional Java applications, the life cycle of a Bean is very simple. Instantiate a Bean using the Java keyword new, and then the Bean can be used. Once the Bean is no longer used, Java automatically garbage colle ...
Posted by IsmAvatar on Mon, 01 Nov 2021 09:00:20 -0700
Spring MVC basic usage
Spring MVC overview
Spring MVC is a web framework based on MVC design concept officially provided by spring. (equivalent to Servlet)
Spring MVC is a framework for MVC control based on Servlet encapsulation. Realize the data interaction between the front end and the server.
Comparative advantages of Spring MVC and Servlet
Strictly abid ...
Posted by ericcampbell30 on Mon, 01 Nov 2021 03:54:30 -0700
An article on understanding struts 2 + hibernate + spring and ssh integration framework
This article will explain based on Maven project. If you don't understand maven, you can refer to the previous article published
Rely on the downloaded Maven website: https://mvnrepository.com/
Struts2
What is struts?
A web application framework designed based on mvc pattern is an upgraded version of struts 1, which ...
Posted by Akenatehm on Sun, 31 Oct 2021 02:41:41 -0700
Springcloud version H series 9--Config configuration center
The book follows the above and continues to learn SpringCloud Config from Mr. Zhou Yang. It is hereby sorted out as follows
1, Config configuration center
In the distributed system, due to the huge number of services, in order to facilitate the unified management and real-time update of service configuration files, distributed configurati ...
Posted by gromer on Sat, 30 Oct 2021 17:08:47 -0700
Learning and interpretation of Java RMI
Write in front #
Following the previous article, this article mainly looks at the source code of the whole RMI process and makes a simple analysis
RMI source code analysis #
Let's review the RMI process first:
Create a remote object interface (RemoteInterface)Create a remote object class (RemoteObject) to implement the remote object interfa ...
Posted by zoobooboozoo on Sat, 30 Oct 2021 00:52:36 -0700
Getting started with Spring Security
Getting started with Spring Security
1, Use of Spring Security
1.1 basic terms
Spring Security is a powerful and highly customizable authentication and authorization framework. It is a set of Web security standards for spring applications. Spring Security focuses on providing authentication and authorization functions for java applicatio ...
Posted by tunari on Sat, 30 Oct 2021 00:00:24 -0700
High frequency interview question: a picture to thoroughly understand Spring circular dependency
home pagespecial columnjavaArticle details0High frequency interview question: a picture to thoroughly understand Spring circular dependencyJava general Published 10 minutes ago1 what is circular dependency?As shown in the figure below:BeanA class depends on BeanB class, and BeanB class depends on BeanA class. This dependency forms a closed loop ...
Posted by Singularity on Fri, 29 Oct 2021 23:17:32 -0700
Database connection pool C3P0: database connection pool technology Druid: database connection pool implementation technology spring JDBC
Database connection pool
Concept: in fact, it is a container (Collection) for storing database connections
After the system is initialized, the container is created, and some connection objects will be applied in the container. When the user accesses the database, the connection objects will be obtained from the container. After the user ...
Posted by jrws on Fri, 29 Oct 2021 04:34:14 -0700