How to inject EntityManager in test directory?

后端 未结 0 1426
攒了一身酷
攒了一身酷 2021-02-01 22:45

This is my spring config based on hibernate. My problem is when I want to inject EntityManager in my test class. The problem is I get an exception that this.entitymanager is nul

相关标签:
回答
  • 消灭零回复
提交回复
热议问题