当前位置:网站首页>Activit fragmented deadly pit
Activit fragmented deadly pit
2022-07-06 17:00:00 【Motorcycle loving program ape】
Keng Keng Wawa has walked an extraordinary road
One 、 Configuration integration
1.avtivit7 rely on Springboot And Spring Different
2.Spring To configure activiti7 The configuration file
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd">
<!-- data source -->
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver"/>
<property name="url" value="jdbc:mysql://localhost:3306/activiti"/>
<property name="username" value="root"/>
<property name="password" value="123"/>
<property name="maxActive" value="3"/>
<property name="maxIdle" value="1"/>
</bean>
<!-- Workflow engine configuration bean -->
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<!-- data source -->
<property name="dataSource" ref="dataSource"/>
<!-- Use spring Transaction manager -->
<property name="transactionManager" ref="transactionManager"/>
<!-- Database policy -->
<property name="databaseSchemaUpdate" value="true"/>
</bean>
<!--
databaseSchemaUpdate Value content of :
flase: The default value is .activiti When it starts , Compare versions saved in database tables , If there is no table or version mismatch , An exception will be thrown .( The production environment is often used )
true: activiti All tables in the database will be updated . If the watch doesn't exist , Automatically create .( It is often used in development )
create_drop: stay activiti Create table at startup , Delete table on close ( You have to shut down the engine manually , To delete the table ).( Unit test common )
drop-create: stay activiti Delete old tables on startup , Then create a new table ( There's no need to manually shut down the engine ).
-->
<!-- Process engine -->
<bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
<property name="processEngineConfiguration" ref="processEngineConfiguration"/>
</bean>
<!-- Resource service service -->
<bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService"/>
<!-- Process operation service -->
<bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService"/>
<!-- task management service -->
<bean id="taskService" factory-bean="processEngine" factory-method="getTaskService"/>
<!-- History management service -->
<bean id="historyService" factory-bean="processEngine" factory-method="getHistoryService"/>
<!-- Transaction manager -->
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource"/>
</bean>
<!-- notice -->
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<!-- Communication behavior -->
<tx:method name="save*" propagation="REQUIRED"/>
<tx:method name="insert*" propagation="REQUIRED"/>
<tx:method name="delete*" propagation="REQUIRED"/>
<tx:method name="update*" propagation="REQUIRED"/>
<tx:method name="find*" propagation="SUPPORTS" read-only="true"/>
<tx:method name="get*" propagation="SUPPORTS" read-only="true"/>
</tx:attributes>
</tx:advice>
<!-- section , Modify the tangent point configuration according to the specific project
<aop:config proxy-target-class="true">
<aop:advisor advice-ref="txAdvice"
pointcut="execution(*com.itheima.service.impl..(..))"/>
</aop:config>-->
</beans>
3.web.xml Scan to profile

4. In the increase of database connection nullCatalogMeansCurrent=true that will do .

Two 、 Database version
see pom.xml mysql edition
View local mysql Version modification configuration
mysql -uroot -p
Input password
3、 ... and 、 example bug
org.activiti.engine.ActivitiObjectNotFoundException: no processes deployed with key ‘process‘
solve :
activiti The template of must be bpmn20.xml perhaps bpmn ending
Start process instance key For deployment flowchart process Label under IDVisit the page :java.lang.ClassCastException: de.odysseus.el.ExpressionFactoryImpl cannot be cast to javax.el.ExpressionFactory
Content error :
DEBUG [org.springframework.web.servlet.DispatcherServlet] - Error rendering view [org.springframework.web.servlet.view.JstlView: name ‘adMatching’; URL [/WEB-INF/page/adMatching.jsp]] in DispatcherServlet with name ‘SpringMvc’
org.apache.jasper.JasperException: Unable to compile class for JSP
activiti6 solve : With the project el expression jar Filter out the problem of package conflict jar It is good to pack
<exclusions>
<exclusion>
<groupId>de.odysseus.juel</groupId>
<artifactId>juel-api</artifactId>
</exclusion>
</exclusions>

activiti7 solve : With the project el expression jar Filter out the problem of package conflict jar It is good to pack
<exclusions>
<exclusion>
<groupId>de.odysseus.juel</groupId>
<artifactId>juel-api</artifactId>
</exclusion>
</exclusions>
<exclusions>
<exclusion>
<groupId>javax.el</groupId>
<artifactId>el-api</artifactId>
</exclusion>
</exclusions>

- Configure multiple data sources
边栏推荐
- Shell_ 06_ Judgment and circulation
- Full record of ByteDance technology newcomer training: a guide to the new growth of school recruitment
- 搭建flutter环境入坑集合
- The 116 students spent three days reproducing the ByteDance internal real technology project
- Redis standalone startup
- High performance mysql (Third Edition) notes
- Continue and break jump out of multiple loops
- ~70 row high
- 控制转移指令
- Record the error reason: terminate called after throwing an instance
猜你喜欢
![Which is more important for programming, practice or theory [there are some things recently, I don't have time to write an article, so I'll post an article on hydrology, and I'll fill in later]](/img/a1/7dd41e75d6768159317b65e436030d.jpg)
Which is more important for programming, practice or theory [there are some things recently, I don't have time to write an article, so I'll post an article on hydrology, and I'll fill in later]

我走過最迷的路,是字節跳動程序員的腦回路
![[graduation project] QT from introduction to practice: realize imitation of QQ communication, which is also the last blog post in school.](/img/ef/2072aac5f85c7daf39174784dec7ee.jpg)
[graduation project] QT from introduction to practice: realize imitation of QQ communication, which is also the last blog post in school.

~69 other ways to use icon fonts

Fdog series (III): use Tencent cloud SMS interface to send SMS, write database, deploy to server, web finale.

One hundred questions of image processing (1-10)

LeetCode 1020. Number of enclaves

The "advertising maniacs" in this group of programmers turned Tiktok advertisements into ar games

~85 transition

Yao BanZhi and his team came together, and the competition experts gathered together. What fairy programming competition is this?
随机推荐
yum install xxx报错
Activiti目录(一)重点介绍
7-10 punch in strategy
MySQL字符串函数
Activit零零碎碎要人命的坑
[unsolved]7-14 calculation diagram
J'ai traversé le chemin le plus fou, le circuit cérébral d'un programmeur de saut d'octets
Fdog series (4): use the QT framework to imitate QQ to realize the login interface, interface chapter.
亮相Google I/O,字节跳动是这样应用Flutter的
README. txt
Data config problem: the reference to entity 'useunicode' must end with ';' delimiter.
~83 form introduction
Fdog series (I): think about it. It's better to write a chat software. Then start with the imitation QQ registration page.
汇编语言段定义
Go language uses the thrift protocol to realize the client and service end reports not enough arguments in call to oprot Writemessagebegin error resolution
LeetCode 1638. Count the number of substrings with only one character difference
Restful style interface design
~Introduction to form 80
Shell_ 05_ operator
Which is more important for programming, practice or theory [there are some things recently, I don't have time to write an article, so I'll post an article on hydrology, and I'll fill in later]