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

后端 未结 9 2221
一个人的身影
一个人的身影 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:58

    check that you added @Repository annotation on JpaRepository Check that you make all entity Setter and Getter clean and build then run.

提交回复
热议问题