The first step:
Create a database in MySQL named ' Activiti '
Execute the script under D:\activiti-5.21.0\database\create
Step Two:
Open = apache-tomcat/webapps/activiti-explorer/web-inf/classes/
Db.properties
Modifying a configuration file db.properties
Db=activiti
Jdbc.driver=com.mysql.jdbc.driver
Jdbc.url=jdbc:mysql://localhost:3306/activiti
Jdbc.username=root
Jdbc.password=root
If it is a third-party program, modify the Activiti.cfg.xml
<Beansxmlns= "Http://www.springframework.org/schema/beans"Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"xsi:schemalocation= "Http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd" > <BeanID= "Processengineconfiguration"class= "Org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration"> < Propertyname= "Jdbcurl"value= "Jdbc:mysql://localhost:3307/activiti?autoreconnect=true" /> < Propertyname= "Jdbcdriver"value= "Com.mysql.jdbc.Driver" /> < Propertyname= "Jdbcusername"value= "root" /> < Propertyname= "Jdbcpassword"value="" /> < Propertyname= "Databaseschemaupdate"value= "true" /> < Propertyname= "Jobexecutoractivate"value= "false" /> < Propertyname= "asyncexecutorenabled"value= "true" /> < Propertyname= "Asyncexecutoractivate"value= "false" /> < Propertyname= "Mailserverhost"value= "Mail.my-corp.com" /> < Propertyname= "Mailserverport"value= "5025" /> <!--<property name= "Eventlisteners" > -<!--<list> -<!--<bean class= "Activitilearn.myeventlistener"/> -<!--</list> -<!--</property> - </Bean></Beans>
Open =>apache-tomcat-7.0.27/webapps/activiti-rest/web-inf/classes/
Db.properties
Modifying a configuration file db.properties
Db=activiti
Jdbc.driver=com.mysql.jdbc.driver
Jdbc.url=jdbc:mysql://localhost:3306/activiti
Jdbc.username=root
Jdbc.password=root
Step Three:
To configure the POM:
<Dependency> <groupId>Mysql</groupId> <Artifactid>Mysql-connector-java</Artifactid> <version>5.1.30</version></Dependency>
Non-MAVEN environment to copy Mysql-connector-java-5.1.18-bin.jar to Lib
Fourth step (similar to step second to third):
Copy the Mysql-connector-java-5.1.18-bin.jar to Lib.
=>apache-tomcat-7.0.27/webapps/activiti-rest/web-inf/lib
At last:
Finally reboot the Tomcat server and verify the Activiti database. See if the table is configured OK
Execute the third section of the program, found that the data can be saved to MySQL
Liferay7 BPM Portal Development 6:activiti database for MySQL