SpringBoot 测试类 @RunWith & @SpringBootTest

 

@RunWith(SpringRunner.class)
@SpringBootTest
public class RabbitMqTest {
    
    @Autowired
    RabbitMqSender rabbitMqSender;
    
    @Autowired
    IUserBaseInfoService userBaseInfoService;
    @Test
    public void sendMessage() {
 
    }
}

 

posted @ 2019-07-13 10:49  ThisCall  阅读(3528)  评论(0编辑  收藏  举报