How to get ApplicationContext inside a unit test class of non-spring managed class

后端 未结 0 1406
暖寄归人
暖寄归人 2021-01-13 15:59

I have a requirement where I had to use Spring beans inside a POJO class to retrieve a MyDomainClass object. Since Autowiring the beans inside the class which is not managed

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