Consider defining a bean of type 'javax.persistence.EntityManagerFactory' in your configurat
Posted 放码过来
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Consider defining a bean of type 'javax.persistence.EntityManagerFactory' in your configurat相关的知识,希望对你有一定的参考价值。
提示:Parameter 1 of method springProcessEngineConfiguration in org.activiti.spring.boot.JpaProcessEngineAutoConfiguration$JpaConfiguration required a bean of type \'javax.persistence.EntityManagerFactory\' that could not be found. springboot2.5集成activiti的时候出现错误
添加依赖
<dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>2.4.0-b180830.0359</version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-entitymanager</artifactId> <version>4.3.8.Final</version> </dependency>
完美解决问题,暂时没有考究具体原因
以上是关于Consider defining a bean of type 'javax.persistence.EntityManagerFactory' in your configurat的主要内容,如果未能解决你的问题,请参考以下文章
springboot Consider defining a bean of type 'xxx' in your configuration
Consider defining a bean of type 'org.springframework.security.authentication.AuthenticationMana
Consider defining a bean of type问题解决
MapStruct - Consider defining a bean of type in your configuration.
Consider defining a bean of type `xxx` in your configuration问题解决问题解决
Spring Boot @Autowired无法注入类 Consider defining a bean of type