springboot series 03: database operation and front-end rendering
Database operation
pom.xml import module:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</de ...
Posted by neox_blueline on Thu, 13 Jan 2022 12:10:27 +0100
Analysis of Bean scanning implementation under "chat about Spring" class path
To become a Spring bean, we usually add annotations @ Component, @ Controller, @ Service, @ Repository and other annotations on the class. And Spring from 4 Since the X version, Spring supports the Conditional annotation @ Conditional, and only the classes that meet the conditions can be registered as Spring beans. Therefore, before analyzing t ...
Posted by Silverlime on Thu, 13 Jan 2022 10:53:47 +0100
Talk about @ qualifier in Spring dependency injection
Spring supports injecting dependencies of single type and collection type. For a single type, if you inject by type, spring will throw a NoUniqueBeanDefinitionException when there are multiple beans of the same type in the container. In this case, we can choose to set a bean as primary. However, if there are multiple primary beans, spring will ...
Posted by taldos on Thu, 13 Jan 2022 06:22:22 +0100
"Talk about Spring" dependency resolution implementation
In< What is the difference between @ Autowired and @ Resource in Spring? In this article, we mentioned that when Spring relies on injection, it first parses @Autowired annotations and @Resource annotated objects into dependency descriptor DependencyDescriptor, and then calls AutowireCapableBeanFactory#resolveDependency (DependencyDescriptor, ...
Posted by samtwilliams on Thu, 13 Jan 2022 06:13:38 +0100
Spring MVC custom processor mapper and processor adapter
Spring MVC processes http requests through the handler mapping and handler adapter. When a request passes through the dispatcher servlet, the dispatcher servlet will select an appropriate handler mapping and handler adapter to process the request.
By customizing the processor mapper and processor adapter, we can learn how spring MVC handles a ...
Posted by 7awaka on Thu, 13 Jan 2022 00:37:07 +0100
Spring cloud application startup process analysis
spring cloud must be familiar to everyone. It provides developers with tools to quickly build some common patterns in distributed systems, such as configuration management, service discovery, circuit breaker and load balancing. As the saying goes, if you want to be good at something, you must first use your tools. Today, let's disassembl ...
Posted by neuromancer on Wed, 12 Jan 2022 13:08:13 +0100
SpringBoot custom starter - simple version
1. Description
I had a tentative interview with a company before. One of the questions was: have you ever written a SpringBoot custom starter
Since I have read the source code of Spring before, is this still a problem? Although I haven't written it, I explained the principle again. Take the time to write a custom starter and an enhanced v ...
Posted by mmtalon on Wed, 12 Jan 2022 11:35:14 +0100
Implementation of distributed delay tasks based on rabbitmq delay plug-in
Undertake the above Practice of delay queue based on redis and redisson Today, we will introduce rabbitmq, a delay plug-in based on rabbitmq_delayed_message_exchange implements deferred tasks.
1, Usage scenarios for delayed tasks
1. The order was placed successfully and was not paid for 30 minutes. Payment timeout, automatic cancellation of ord ...
Posted by komquat on Wed, 12 Jan 2022 10:47:08 +0100
Spring MVC User Guide
Spring MVC User Guide
1, How spring MVC works
1.1 principle and process of spring MVC
Picture address: 22. Web MVC framework
The user initiates a request and the request is intercepted into the dispatcher servlet (FrontController), which is the core of Spring,Handle the URL of the request with HandlerMapping and find the processor ...
Posted by hcoms on Wed, 12 Jan 2022 02:05:44 +0100
Spring MVC User Guide
Spring MVC User Guide
1, How spring MVC works
1.1 principle and process of spring MVC
Picture address: 22. Web MVC framework
The user initiates a request and the request is intercepted into the dispatcher servlet (FrontController), which is the core of Spring,
Handle the URL of the request with HandlerMapping and find the processor Handler ...
Posted by Draco_03 on Tue, 11 Jan 2022 10:05:10 +0100