How to inject JPA EntityManager using spring

后端 未结 3 1744
陌清茗
陌清茗 2020-12-02 15:33

Is it possible to have Spring inject the JPA entityManager object into my DAO class without extending JpaDaoSupport? If yes, does Spring m

3条回答
  •  生来不讨喜
    2020-12-02 15:59

    The latest Spring + JPA versions solve this problem fundamentally. You can learn more how to use Spring and JPA togather in a separate thread

提交回复
热议问题