EasyExcel course classification module of grain College
Article catalogue
1, Introduction to EasyExcel
1. Application scenarios for Excel import and export2. EasyExcel features3. Case 1: Excel write operation by easyexcel4. Case 2:EasyExcel reading operation 2, Add function of course classification (back end)
1. Introducing easyexcel dependency2. Use the code generator to generat ...
Posted by amylisa on Thu, 10 Mar 2022 06:02:45 +0100
Spring principle and source code analysis series - Spring IoC source code analysis
preface
IoC container is mainly divided into two stages: IoC container startup and dependency injection. In the previous section Spring principles and source code analysis series (4) - Spring IoC source code analysis (Part 1) we have analyzed the startup process of IoC container from the perspective of source code. This article will talk about ...
Posted by ahundiak on Thu, 10 Mar 2022 04:52:11 +0100
Spring -- dependency injection
Spring -- dependency injection
Dependency injection (DI)
Dependency injection (DI) is a process through which an object can only define its dependencies (that is, other objects working with them) through constructor parameters, factory method parameters, or properties set on the object instance after constructing or creating the object in ...
Posted by M2tM on Wed, 09 Mar 2022 16:33:48 +0100
spring lifecycle callback (do something after loading and before logging off)
The spring lifecycle callback is on the official website https://docs.spring.io/spring-framework/docs/current/spring-framework-reference/core.html#beans -The factory life cycle is explained in detail. Spring's lifecycle callback is divided into Bean's lifecycle callback and container's lifecycle callback.
1. Lifecycle callback of bean
1.1 Bea ...
Posted by julius_h on Wed, 09 Mar 2022 14:23:25 +0100
Spring from entry to soil (easy to understand version)
1, Basic overview
1.1 what is spring?
Spring is a lightweight java development framework rising in 2003. It is created to solve the complexity of enterprise application development. The core of spring is inversion of control (IoC) and aspect oriented programming (AOP). Spring is a lightweight open source framework that can be used in Java ...
Posted by rossmurphy on Wed, 09 Mar 2022 12:56:44 +0100
SpringBoot04: JSR303 data verification and multi environment switching
JSR303 data verification
Let's see how to use it first
In Springboot, @ validated can be used to verify the data. If the data is abnormal, exceptions will be thrown uniformly to facilitate the unified processing of the exception center. Let's write a comment here so that our name can only support Email format;
@Component //Register bean
@Con ...
Posted by iacataca on Wed, 09 Mar 2022 12:20:15 +0100
Can you use the server free function of puppeter to build a linked browser
In this tutorial, we will learn how to deploy server functionality next to the front-end application and create an API to generate images and get metadata from links.
With serverless functionality, developers can create and implement modern features and functions in their applications without the pain of setting up and managing back-end server ...
Posted by 2tonejoe on Wed, 09 Mar 2022 09:14:40 +0100
Two transactions in Spring
16.Spring transactions
1. Transaction control in spring
Spring's transaction control can be divided into programmatic transaction control and declarative transaction control.
Programming
Developers directly couple the transaction code and business code, which is not needed in actual development.
Declarative
Developers use configuration to ...
Posted by drayarms on Wed, 09 Mar 2022 08:58:05 +0100
The finishBeanFactoryInitialization method in the eighth part of Spring source code analysis is to initialize the singleton bean
The finishBeanFactoryInitialization method in the eighth part of Spring source code analysis is to initialize the singleton beanA profound interpretation of the seven thousand word long article, how to initialize the singleton bean in Spirng, and how does Spring solve the circular dependency most often asked in the interview?Today, the most imp ...
Posted by khendar on Wed, 09 Mar 2022 04:25:29 +0100
[common Spring error cases] exception of calling Bean object method and throwing null pointer in constructor
preface
Sometimes, when you don't understand the way Spring manages Bean, you may encounter various problems, such as calling a method of Bean object in the container, such as:
@Service
public class MyServiceImpl {
@Resource
private UserServiceImpl userService;
public MyServiceImpl() {
userService.method();
}
...
Posted by beselabios on Wed, 09 Mar 2022 01:49:35 +0100