Mybatis learning notes - annotation configuration development
Overview:
1. Preparation
Create a database and user table, account table (using mysql)
Entity class User
Entity class Account
dao.UserDao
dao.AccountDao
2. XML configuration file
Mybatis-config.xml.xml (under resources directory)
3. Operation test
UserDaoTest
AccountDaoTest
4. note:
Project ...
Posted by rake on Tue, 04 Feb 2020 01:28:48 -0800
Spring basic course 11: Spring transaction management
Database transactions
A series of database operations with ACID characteristics realized by database, a refers to atomicity, C refers to consistency, I refers to isolation, and D refers to persistence;
Atomicity refers to that the operation within a transaction is a whole and cannot be subdivided; ...
Posted by Procode on Mon, 03 Feb 2020 23:27:31 -0800
Talk about artemis' individual knowledge
order
This paper mainly studies the individual knowledge of artemis
acknowledge
activemq-artemis-2.11.0/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessage.java
public class ActiveMQMessage implements javax.jms.Message {
//......
public void acknowledge() throws JMSException {
if (session != nul ...
Posted by dylan001 on Sat, 01 Feb 2020 06:06:02 -0800
Spring MVC source code parsing (travel process of a request)
1, Inheritance structure and component initialization of dispatcher Servlet
1.1 dispatcher servlet genealogy
The essence of spring MVC is a Servlet, which inherits from HttpServlet. Spring MVC provides three levels of servlets: HttpServletBean, FrameworkServlet and DispatchServlet, which inherit fr ...
Posted by legio on Sat, 01 Feb 2020 02:42:25 -0800
ActiveMQ -- mode (queue mode / topic mode)
Two modes: queue mode / topic mode
pom.xml
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-all</artifactId>
<version>5.15.9</version>
</dependency>
In fact, the queuing mode is the food sharing mode.
For example, if the manufacturer sends 10 ...
Posted by Ilyes on Thu, 30 Jan 2020 07:30:14 -0800
Shiro + Redis custom session management
Original blog address
This picture is very important!!! Town building
0x001 override SessionManager
shiro provides three default implementations:
DefaultSessionManager: for java se environment
ServletContainerSessionManager: implementation used by default, Servlet container management
DefaultWebSe ...
Posted by mhoward on Wed, 29 Jan 2020 09:19:02 -0800
Test, data pump export during DML operation
The main test is what happens to expdp when a table has DML action.
This test mainly opens three windows, one is to insert data, about 100W pieces will be inserted for a long time. The second window queries the inserted data, of course, it does not query 100W pieces. In the third window, when inserting data, perform data pump e ...
Posted by danville on Wed, 29 Jan 2020 08:02:52 -0800
RabbitMQ learning experience
The following is an introduction from MQ to RabbitMQ, and a demo of the six working modes of RabbitMQ
MQ:
MQ is called Message Queue. It is translated as Message Queue. MQ is a communication method between applications. Applications communicate by writing and retrieving queued application specific d ...
Posted by websiteguy on Wed, 29 Jan 2020 03:56:06 -0800
Use of JSP~~JSTL~~Core Label Library~~out/set Labels
Set Label
The set tag is used to set values within a range (request, session, or application) or to set property values for an object.
The set tag is used in the following format:
(1) Use the value attribute to specify the value of a variable within a specific range in the following format:
<c ...
Posted by svivian on Tue, 28 Jan 2020 19:28:32 -0800
Mysql locates next key lock in one minute. You need a few minutes
Connections and threads
View the connection information show processlist
+----+------+------------------+------+---------+------+----------+------------------+
| Id | User | Host | db | Command | Time | State | Info |
+----+------+------------------+------+---------+------+----------+------------------+
| 3 | root ...
Posted by bigbstanley on Tue, 28 Jan 2020 04:38:47 -0800