35 activiti - User Tasks (Personal Tasks)
1. Flow chart
2. Distribution of Personal Tasks 1 (Direct Assignment of Translators)
1. Configuration of Task Node in Flow Chart
2. Code
ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
//Deploy process definitions and start process instances
@Test
public void testTask() th ...
Added by toms100 on Wed, 31 Jul 2019 21:06:12 +0300
Deep understanding of the role of data validation @Valid (cascade validation)
Every sentence
There are two big jokes in the NBA: Kobe Bryant is not talented, and James is not skilled.
Relevant Reading
[Xiaojia Java] Deep understanding of data validation: Java Bean Validation 2.0 (JSR303, JSR349, JSR380) Hibernate-Validation 6.x use case[Home Spring] Let Controller support data validation of tiling parameters (default Spr ...
Added by Im Jake on Wed, 31 Jul 2019 18:48:02 +0300
unity Project Gets and Changes xml Configuration
Recently, when working on a pc project, it was required to modify the relevant xml configuration in the running application and save it.
As shown in the figure:
Project Root Directory and xml Hierarchy Diagram
xml data:
So how to modify the xml file outside the project and save the modification? Don't ...
Added by netizen on Wed, 31 Jul 2019 12:01:22 +0300
Add log4j2 to the Web Project
To add log4j to the existing engineering code and record the log information without destroying the original code structure, we need to download the package on the official website first. I downloaded apache-log4j-2.12.0-bin, download address: https://logging.apache.org/log4j/2.x/download.html
1. Fi ...
Added by cljones81 on Wed, 31 Jul 2019 09:39:34 +0300
spring AOP -- implemented by annotations
spring AOP - Implemented by Annotation
Catalog
Explain
Configure applicationContext.xml
Face class MyAspect.java
Custom Annotation @Method
summary
Catalog
Explain
This example is not a web project.
Configure applicationContext.xml
Configuration file, code slice.
<?xml version="1.0" enco ...
Added by AnAmericanGunner on Wed, 31 Jul 2019 07:38:04 +0300
Playing with Type Conversion in mybatis
1. Scene
This requirement is common in everyday java development, where 0 or 1 code (not limited to numbers) is used to represent a certain state. For example, 0 for women and 1 for men. And writing to the database may be an identifier, read from the database and restore to specific instructions. And in general, in order to better understand or ...
Added by BrandonK on Tue, 30 Jul 2019 15:49:26 +0300
myBatis: sql execution process
Reprinted from the excellent articles of Nanke Meng Brothers: https://www.cnblogs.com/dongying/p/4142476.html
1. SqlSession Factory and SqlSession.
Through the introduction and use of mybatis in the previous chapters, we can all appreciate the importance of SqlSession. Yes, on the surface, we all u ...
Added by Otoom on Tue, 30 Jul 2019 12:54:38 +0300
Python 3 Web Crawler Actual Warfare-28, Use of Parsing Library: XPath
In the last section, we implemented a basic crawler, but we use regular expressions to extract page information. After using them, we will find that constructing a regular expression is tedious, and in case there is a mistake, it may lead to matching failure. So we use regularization to extract page inf ...
Added by Wayniac on Tue, 30 Jul 2019 12:15:06 +0300
spring Basic Knowledge - --- Introduction to spring, IOC Derivation, hellospring, Modification of Test demo, IOC Creation Objects, spring Configuration File
1. Introduction to spring
Brief Introduction to spring
Single Hell: servlet, jdbc, jsp...
Framework to replace JDBC: MyBatis;
In 2002, Rod johnson first introduced Spring Framework's predecessor, interface21 Framework
In 2003, Spring Framework was redesigned based on interface21 Framework and releas ...
Added by fekaduw on Tue, 30 Jul 2019 11:47:02 +0300
Monitor
Listener
introduce
The listener comes from the servlet specification
The listener is dedicated to monitoring [changes in domain object lifecycle] and [changes in domain object shared data]
The implementation class of listener interface must be implemented by the developer
As mentioned above, listeners are used to monitor changes in the life c ...
Added by mizkit73 on Tue, 30 Jul 2019 07:24:25 +0300