activiti 10分钟教程 报错
?
也可以不使用配置文件,基于默认创建配置 (参考各种支持类)
//ProcessEngine processEngine = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration().buildProcessEngine(); ProcessEngine processEngine = ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration().buildProcessEngine();
?
换第二种方式就好了。
如果是调试可能会报xml解析异常,运行就没事
下载带坐标的xml似乎有问题,可用不带坐标的那个
?
07:21:13,116 [main] INFO? org.activiti.engine.impl.db.DbSqlSession? - performing create on engine with resource org/activiti/db/create/activiti.h2.create.engine.sql
07:21:13,507 [main] INFO? org.activiti.engine.impl.db.DbSqlSession? - performing create on history with resource org/activiti/db/create/activiti.h2.create.history.sql
07:21:13,570 [main] INFO? org.activiti.engine.impl.db.DbSqlSession? - performing create on identity with resource org/activiti/db/create/activiti.h2.create.identity.sql
07:21:13,616 [main] INFO? org.activiti.engine.impl.ProcessEngineImpl? - ProcessEngine default created
?
也可以不使用配置文件,基于默认创建配置 (参考各种支持类)
ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration();
ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration();
?