SpringBoot - Autowire not working in test

前端 未结 0 1731
太阳男子
太阳男子 2020-12-14 00:02

I\'m trying to test a service like this:

@EnableAutoConfiguration
@ActiveProfiles("test")
@ContextConfiguration(classes = MyService.class)
@SpringBo         


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