How to override/replace @MockBean declared in the parent class with @Autwired

前端 未结 0 595
温柔的废话
温柔的废话 2021-01-28 02:04

To avoid the spring context reload again and again. I have moved @MockBean annotated injection to a parent class. something like this.

@SpringBootTest
.......
pub         


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