最近在学习activiti,运行《activiti实战》中的SayHelloToLeaveTest代码时,结果出现了“org.activiti.engine.ActivitiException: Can't find scripting engine for 'groovy'”异常,下面给出解决方案:
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.4.7</version>
</dependency>
取代下面的依赖即可:
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy</artifactId>
<version>2.4.5</version>
</dependency>