SSM整合Activiti 之 遇坑填坑(一)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/hellogbaby/article/details/82802715

SSM整合Activiti 测试的时候报错元素类型为 “when” 的内容必须匹配 “(include|trim|where|set|foreach|choose|if)”。

报错信息:

Exception in thread "main" org.activiti.engine.ActivitiException:
 Error while building ibatis SqlSessionFactory: 
 Error parsing SQL Mapper Configuration. Cause: 
 org.apache.ibatis.builder.BuilderException: 
 Error creating document instance.  Cause: 
 org.xml.sax.SAXParseException;
 lineNumber: 936; columnNumber: 24; 
 元素类型为 "when" 的内容必须匹配 "(include|trim|where|set|foreach|choose|if)"。

这个错误是因为版本问题造成的原因,我是用的activiti5.22.0的版本,从网上又下载了老版本5.15.1,再测试一遍,成功。

猜你喜欢

转载自blog.csdn.net/hellogbaby/article/details/82802715