Spring Data JPA - Consider defining a bean named 'entityManagerFactory' in your configuration

后端 未结 9 2236
一个人的身影
一个人的身影 2020-12-29 05:24

I am developing an application in Spring, using Tomcat, Mysql5, Java8... The problem is that I cannot deploy it, due to \"required bean \'entityManagerFactory\' not found\"

9条回答
  •  庸人自扰
    2020-12-29 05:51

    In my case was the h2-1.4.193.jar, that contains the Driver class but it can't be read (very odd, may be is corrupted), as you can see: Driver class from h2-1.4.193

    So, you can update de spring-boot-starter-parent to 1.5.3.RELEASE (or newer) or override the managed version of your h2 dependency.

提交回复
热议问题