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


提示: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的時候出現錯誤

添加依賴

 1   <dependency>
 2             <groupId>javax.xml.bind</groupId>
 3             <artifactId>jaxb-api</artifactId>
 4             <version>2.4.0-b180830.0359</version>
 5         </dependency>
 6         <dependency>
 7             <groupId>org.hibernate</groupId>
 8             <artifactId>hibernate-entitymanager</artifactId>
 9             <version>4.3.8.Final</version>
10         </dependency>

完美解決問題,暫時沒有考究具體原因


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM