关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、3102411850 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 10511|回复: 2

【求助】jeecg-boot集成Activiti 5.22.0报错

[复制链接]
发表于 2019-6-11 14:11:48 | 显示全部楼层 |阅读模式
jeecg-boot版本1.0.0 现在集成 Activiti 5.22 启动不了。求助!
pom.xml添加依赖:
  1.   <dependency>
  2.                         <groupId>org.activiti</groupId>
  3.                         <artifactId>activiti-spring-boot-starter-basic</artifactId>
  4.                         <version>5.22.0</version>
  5.                         <exclusions>
  6.                                 <exclusion>
  7.                                         <groupId>org.mybatis</groupId>
  8.                                         <artifactId>mybatis</artifactId>
  9.                                 </exclusion>
  10.                         </exclusions>
  11.                 </dependency>


  12.                 <dependency>
  13.                         <groupId>org.springframework.boot</groupId>
  14.                         <artifactId>spring-boot-starter-data-jpa</artifactId>
  15.                         <version>2.1.4.RELEASE</version>
  16.                 </dependency>
复制代码
修改 JeecgApplication.java 文件
  1. @SpringBootApplication(exclude={DataSourceAutoConfiguration.class, org.activiti.spring.boot.SecurityAutoConfiguration.class,})
复制代码
启动报错:
  1. Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
  2. 2019-06-11 14:07:03.595 [main] ERROR o.s.b.diagnostics.LoggingFailureAnalysisReporter:42 -

  3. ***************************
  4. APPLICATION FAILED TO START
  5. ***************************

  6. Description:

  7. Parameter 0 of method transactionManager in org.activiti.spring.boot.JpaProcessEngineAutoConfiguration$JpaConfiguration required a bean of type 'javax.persistence.EntityManagerFactory' that could not be found.


  8. Action:

  9. Consider defining a bean of type 'javax.persistence.EntityManagerFactory' in your configuration.


  10. Process finished with exit code 1
复制代码
求助怎么解决?谢谢!
发表于 2019-8-29 21:23:49 | 显示全部楼层
activiti.xml里 注释掉
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
                <property name="dataSource" ref="dataSource" />
        </bean>
发表于 2020-3-25 11:51:34 | 显示全部楼层
大哥,,集成activiti成功了吗,求一份教程。谢谢。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表