Spring source code -- Bean instantiation

Last BeanWrapper We introduced the origin of BeanWrapper. Now let's continue to see how Spring constructs a Bean. The code is not long and not particularly complex /** * Use the appropriate instantiation strategy to create beans: factorymethod, automatic injection of constructor, or simple parameterless constructor */ protected BeanWrap ...

Posted by dianaqt on Fri, 03 Dec 2021 22:01:04 -0800

Interceptors and filters

Interceptors and filters in spring boot Interceptor Execution process of interceptor Directly on the code, the code has comments package com.hjx.config; import org.springframework.stereotype.Component; import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servlet.ModelAndView; import javax.servlet.h ...

Posted by Nirvana on Fri, 03 Dec 2021 15:20:28 -0800

Introduction to SpringMVC and integration of Swagger

Introduction to Spring MVC Spring MVC is the framework design Srping provides for Web applications. SpringMVC is a typical textbook-style MVC framework, unlike Struts and others, which are variants or are not entirely mvc-based. Spring MVC has clear roles, detailed division of labor, and seamlessly combines with the Spring framework. As the m ...

Posted by scallywag05 on Fri, 03 Dec 2021 11:19:07 -0800

File upload and file download

preparation File upload is one of the most common functions in project development. Spring MVC can well support file upload, but MultipartResolver is not installed in the spring MVC context by default, so it cannot handle file upload by default. If you want to use spring's file upload function, you need to configure MultipartResolver in ...

Posted by djheru on Fri, 03 Dec 2021 04:58:48 -0800

Spring Notes: Automatic assembly of bean s

Assembly refers to assigning attributes to objects. In addition to explicitly assigning attributes in xml files using the property tag, there are other ways to automatically assign attributes (assembly). 1. Auto-assemble using the autowire property of the bean tag. The common values for the bean tag's autowire property are byName and byType, wh ...

Posted by rockroka on Thu, 02 Dec 2021 12:09:03 -0800

Summary of how SpringBoot registers components with containers

Catalogue of Series Articles Spring Boot is a completely new open source framework based on Spring. It has all the best features of Spring, and is simpler to use, more versatile, and more stable and robust in performance. Spring Boot provides a number of out-of-the-box dependent modules, such as spring-boot-starter-redis, spring-boot-starter-d ...

Posted by The Midnighter on Wed, 01 Dec 2021 20:37:33 -0800

Spring boot framework final exam outline explanation

Question type choice question Program reading questions Program error correction Procedural blank filling Programming problem Master the meaning of common coordinate dependency, such as web, hot deployment, etc <dependencies> <dependency> <groupId>Project group ID</groupId> <artifactId>Project id ...

Posted by Drumminxx on Wed, 01 Dec 2021 14:57:18 -0800

Spring boot asynchronous requests and asynchronous calls

Transferred from: Micro reading (www.weidianyuedu.com) Micro reading - complete collection of model articles - a website for free learning knowledge 1, Use of asynchronous requests in Spring Boot** 1. Asynchronous request and synchronous request Synchronization request Asynchronous request Features: you can first release the thread ...

Posted by alexcrosson on Wed, 01 Dec 2021 06:39:49 -0800

Close reading of Spring source code -- in-depth analysis of the underlying principle of dynamic proxy

Previous review: Read Spring source code (I) -- overview of refresh() method Read the Spring source code (II) -- about the design patterns used in Spring Dynamic proxy portal (two good articles, moving over): What is the role of Java dynamic proxy? Implementation and principle of java Dynamic agent The last article combed the design patte ...

Posted by alireza on Wed, 01 Dec 2021 00:38:26 -0800

Spring from shallow to deep

Spring 1. Introduction 1.1. What is Spring Spring is a lightweight open source framework for layered Java SE/EE application full stack, with IoC (Inverse Of Control) and AOP (Aspect Oriented Programming) as the kernel. It provides many enterprise application technologies such as presentation layer SpringMVC, persistence layer spring JDB ...

Posted by everydayrun on Tue, 30 Nov 2021 21:37:56 -0800