Could not load TestContextBootstrapper [null]. Specify @BootstrapWith‘s ‘value‘ attribute...
在测试redis集成短信验证时使用test启动类做单元测试,使用了spring注入。@RunWith(SpringRunner.class)@SpringBootTest(classes = RbacApplication.class)public class SmsUtilTest extends RbacApplicationTest{ @Autowired private SmsHelper smsHelper; @Autowired private Red
原创
2021-08-08 12:48:45 ·
3498 阅读 ·
1 评论