Spring source code learning -- dependency injection source code analysis

resolveDependency() implementation     The previous article analyzed the working principle and source code of byname (bytype) and @ Autowired annotation in Spring. The @ Autowired annotation depends on injection, in which the injection point injection, whether attribute injection or method injection, has the same method org.springframew ...

Added by decypher on Wed, 10 Nov 2021 05:57:56 +0200

Spring - @Value function details

preface For small partners engaged in java development, the spring framework is certainly familiar. Spring provides developers with a very rich api to meet our daily work needs. If you want to create a bean instance, you can use @ Controller, @ Service, @ Repository, @ Component and other annotations. If you want to inject an object by depen ...

Added by Scott_J on Tue, 09 Nov 2021 21:21:05 +0200

FeignClient file upload and download of spring cloud

Use feignClient to upload and download files, and compatible with data transmission The communication between microservices can use feign interface to communicate and transfer data content, but if there is file transfer between services, it will be very clumsy to use httpClient to transfer.feign interface actually transmits data through http r ...

Added by suomynonA on Tue, 09 Nov 2021 12:28:41 +0200

spring Series - JDBCTemplate and spring MVC interceptors

3.6,Spring JDBC Template 3.6.1, overview of JdbcTemplate It is an object provided in the spring framework and is a simple encapsulation of the original cumbersome jdbc API objects. The spring framework provides us with a number of operation template classes. For example, Jdbc Template and Hibernate Template for manipulating relational data, R ...

Added by Weiry on Sun, 07 Nov 2021 18:18:03 +0200

Spring IOC dependency injection

preface The initialization process of IoC container is analyzed in detail. The main work of this initialization process is to establish BeanDefinition data mapping in IoC container. However, the IoC container does not inject Bean dependencies. This article analyzes how to inject Bean dependencies when the IoC container. The main method ca ...

Added by westminster86 on Wed, 03 Nov 2021 23:20:57 +0200

SpringBoot implements Excel import and export, which is easy to use, and POI can be thrown away

In our daily work, we often encounter the function of operating Excel, such as exporting an Excel report of user information or order information. You must have heard of POI, which can be realized. But the API implemented by POI is really troublesome. It needs to write line by line parsing code (similar to Xml parsing). Today, I recommend a ver ...

Added by andrin on Wed, 03 Nov 2021 09:52:49 +0200

Purpose of Spring event source

preface Spring is already very familiar with spring. Spring container state events are also daily functions, which are often used for decoupling. However, sometimes events will be repeatedly monitored. At this time, they need to be handled. source is also used for special purposes. 1. demo Construct a Spring boot application and write a list ...

Added by kappaluppa on Mon, 01 Nov 2021 14:44:43 +0200

For SSM integration, a Cannot resolve reference to bean 'com.mysql.cj.jdbc.Driver' or No bean named 'database driven full class name' solution appears

After building a complete SSM framework, I test the addition, deletion, modification and query of the database in the test class. The following is the test code: @Test public void insert() { ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml"); EmployeeMapper employeeMappe ...

Added by pngtest on Mon, 01 Nov 2021 12:50:31 +0200

2021.11.1 purpose and operation process of Spring MVC. Run a Hello World with Spring MVC, and understand the components of Spring MVC by combining theory with code

Servlet is a protocol, framework technology, a set of standards, a set of standards for java web development, and java Dynamic web Framework Technology. Traditional Servlet: accept the user's request, process it, and give the user a response after processing. A Servlet can only receive a corresponding user request, which will lead us to de ...

Added by JustinK101 on Mon, 01 Nov 2021 12:45:16 +0200

Initialization of Spring----- refresh()

Initialization of Spring Surprisingly, Spring is no stranger to the core framework in Java, a point that interviewers often ask, and the source code is also the most beautiful framework. The core is IOC and AOP. IOC is simply a container that manages everything together. AOP is dynamic and adds some enhancements when you execute the methods in ...

Added by edkellett on Sun, 31 Oct 2021 22:34:23 +0200