Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument

前端 未结 2 857
灰色年华
灰色年华 2021-01-20 17:23

I just migrate to spring JPA technology and manage to change my simple jersey-hibernate project to spring JPA with custom crudrepository. But I can\'t deal with auto config

2条回答
  •  野的像风
    2021-01-20 17:49

    If you are using Hibernate, you have to provide most basic hibernate object (or bean in spring) called EntityManagerFactory to manage db sessions. This may be helpful : Obtaining EntityManager in Spring + Hibernate configuration

提交回复
热议问题