问题背景:springboot整合camunda流程引擎
使用配置:
使用jdk:17
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter</artifactId>
<version>7.18.0</version>
</dependency>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
<version>7.18.0</version>
</dependency>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
<version>7.18.0</version>
</dependency>
解决方式:
首先检查以下每一条有无错误
没有错误以后,看了很多其他博主的配置,也没有错误,最后发现还是版本问题,最初参考版本的博主在启动类添加了@EnableProcessApplication注解,使用postDeploy来启动,其实注解和它去掉,使用最原始的application,启动后会自动加载。(这个故事告诉我们跟着教程走就得一个教程跟到底,再一次感叹版本问题实在太恶心了),去掉注解以后配置成功