xml way to customize the implementation of the Ioc container
Use xml to implement a custom simple Ioc container
In the usual development process, we all use Spring for development. The Ioc container at the core of Spring helps us to create objects. This process is called inversion of control, also called Ioc.When an object is in ...
Posted by roydukkey on Sat, 07 May 2022 07:32:39 +0300
Dock installs Redis (if installed, please skip this step)
1. Pull Redis image (latest version by default)
docker pull redis
If the download is slow, it is recommended to configure alicloud image
View alicloud image: alicloud official website -- > products -- > search container image service -- > management console
Mirror accelerator ...
Posted by asuperstar103 on Fri, 06 May 2022 23:50:35 +0300
Custom persistence framework mybatis
JDBC operation database and Mybatis operation database. Why use the Mybatis framework instead of the native JDBC operation database?With these questions, let's take a look at the native JDBC data operation steps!
JDBC database operation steps
1 load drive
2 create connection
3 compiling sql statemen ...
Posted by lady1dc on Fri, 06 May 2022 23:17:22 +0300
rollback of transaction
If the acquired transaction attribute is not empty and the thrown exception is of type RuntimeException or Error, call the rollback method in the transaction manager to roll back If the transaction property is empty or the exception thrown is not RuntimeException or Error, the transaction will continue to be committed ...
Posted by (RL)Ian on Fri, 06 May 2022 07:27:05 +0300
Source click study Check
What is a Shutdown hook
Shutdown hook is a hook closed by Jvm. It is implemented by the Runtime#addShutdownHook(Thread hook) method. According to the api annotation, it can be seen that it is a series of thread objects that have been initialized but not yet executed. We can register a hook with Jvm to realize the functi ...
Posted by sprinkles on Thu, 05 May 2022 19:47:21 +0300
Interviewer Q1: can you write a simple implementation of ArrayList?
We all know that ArrayList is implemented based on array. If you are asked to implement the add(), remove(), get() methods in ArrayList of JDK source code, do you know how to implement them? In this section, instead of looking at the source code, let's think about how to simpl ...
Posted by lush_pierre on Wed, 04 May 2022 08:28:04 +0300
I remember that I should have learned the concepts of sets and related operations on sets in junior high school. Now I will review the following summary.
1. The meaning of the set: some specified objects are set together to become a set, and each object is called an element.
2. Three characteristics of the elements in the ...
Posted by sirish on Tue, 03 May 2022 21:06:58 +0300
What is Maven:
The official definition of Maven is: Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project’s build, reporting and documentation from a central piece of information. Translation: Apache Maven is a software project management and ...
Posted by ChibiGuy on Tue, 03 May 2022 20:15:50 +0300
RocketMq is a message oriented middleware developed by Alibaba and donated to Apache. It is introduced on the official website as follows:
Apache RocketMQ™ is a unified messaging engine, lightweight data processing platform.
RocketMQ is a unified message processing engine and a lightweight data processing platform.
Low de ...
Posted by syamswaroop on Tue, 03 May 2022 03:34:27 +0300
Continuing from the first chapter, this chapter learns to set up the database, create models and introduce the backend that Django automatically generates.
1. Install the database
Now open mysite/settings.py, this is Django's python model settings file.
SQLite is used by default. If we are interested in Django, then this database is enough, ...
Posted by makoy on Tue, 03 May 2022 03:05:12 +0300