准备环境:

springMvc框架及Activity所需要的jar:

创建spring-activity.xml文件,里面内容:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd"
default-lazy-init="true">

<!-- 创建一个流程引擎的配置对象 -->
<bean />
</beans>

然后在web.xml加入:

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:spring/spring-activiti.xml
</param-value>
</context-param>

 

启动就可以了。

如果报默报错 spring-activity.xml 改成如下:

<bean /> 
</bean>

相关文章:

  • 2021-11-18
  • 2021-10-03
  • 2021-12-31
  • 2021-12-12
  • 2021-06-07
  • 2021-07-21
猜你喜欢
  • 2021-07-20
  • 2021-11-26
  • 2022-01-16
  • 2021-06-12
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
相关资源
相似解决方案