org.activiti.engine.ActivitiException: Can't find scripting engine for 'groovy'

2022-03-28 14:40:43 浏览数 (1)

最近在学习activiti,运行《activiti实战》中的SayHelloToLeaveTest代码时,结果出现了“org.activiti.engine.ActivitiException: Can't find scripting engine for 'groovy'”异常,下面给出解决方案:

修改pom.xml文件中groovy依赖,以

代码语言:javascript复制
    <dependency>
     <groupId>org.codehaus.groovy</groupId>
     <artifactId>groovy-all</artifactId>
     <version>2.4.7</version>
   </dependency>

取代下面的依赖即可:

代码语言:javascript复制
<dependency>
	<groupId>org.codehaus.groovy</groupId>
	<artifactId>groovy</artifactId>
	<version>2.4.5</version>
</dependency>	

0 人点赞