christie 发表于 2019-6-11 14:11:48

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

jeecg-boot版本1.0.0 现在集成 Activiti 5.22 启动不了。求助!
pom.xml添加依赖:<dependency>
                        <groupId>org.activiti</groupId>
                        <artifactId>activiti-spring-boot-starter-basic</artifactId>
                        <version>5.22.0</version>
                        <exclusions>
                                <exclusion>
                                        <groupId>org.mybatis</groupId>
                                        <artifactId>mybatis</artifactId>
                                </exclusion>
                        </exclusions>
                </dependency>


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

***************************
APPLICATION FAILED TO START
***************************

Description:

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.


Action:

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


Process finished with exit code 1
求助怎么解决?谢谢!

ronychan 发表于 2019-8-29 21:23:49

activiti.xml里 注释掉
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
                <property name="dataSource" ref="dataSource" />
        </bean>

阿飞6666 发表于 2020-3-25 11:51:34

大哥,,集成activiti成功了吗,求一份教程。谢谢。
页: [1]
查看完整版本: 【求助】jeecg-boot集成Activiti 5.22.0报错