在springcloud项目上新建activiti项目服务修改配的文件启动服务看能否注册到注册中心。
在pom文件中引入activiti(因为activiti包中自带mybatis为防止jar冲突需去掉依赖)
重新启动项目
如果启动报以下错误
启动报错1:
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name ‘requestMappingHandlerMapping’ defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]:
Invocation of init method failed; nested exception is java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
在启动类上排除org.activiti.spring.boot.SecurityAutoConfiguration类
启动报错2
Error creating bean with name ‘springProcessEngineConfiguration’ defined in class path resource [org/activiti/spring/boot/DataSourceProcessEngineAutoConfiguration$DataSourceProcessEngineConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.activiti.spring.SpringProcessEngineConfiguration]: Factory method ‘springProcessEngineConfiguration’ threw exception; nested exception is java.io.FileNotFoundException: class path resource [processes/] cannot be resolved to URL because it does not exist
解决方法:
在application.yml中加上
activiti:
check-process-definitions: false
重新启动项目项目运行正常。
查看数据库
这样springcloud项目集成activiti项目就成功了
新坑之-----------activiti6.0集成springboot时候显示流程图中文乱码
新建一个
效果图
记录下
https://download.youkuaiyun.com/download/u010740917/12047382
此致:敬礼。
感谢各位网友的阅读。