问题
camunda部署流程报错如下:
当把url改为 http://localhost:8080/rest 时还是会报错如上。
解决方法
pom.xml文件中要包含如下依赖:
<!-- web界面模块-->
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
<version>2.3.0-alpha1</version>
</dependency>
<!-- rest服务接口-->
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
<version>2.3.0-alpha1</version>
</dependency>
使用camunda流程引擎、web界面、Rest服务接口相应依赖如下:
-
流程引擎:camunda-bpm-spring-boot-starter
-
Rest服务接口:camunda-bpm-spring-boot-starter-rest
-
web界面模块:camunda-bpm-spring-boot-starter-webapp
流程引擎的部署和app的部署是两个完全不一样的东西。
camunda-bpm-spring-boot-starter-rest默认的是rest ,不是engine-rest。所以 rest endpoint 应该填http://localhost:8080/rest。