使用阿里云短信服务空指针异常
smsComponent注入失败了吧,检查下test类的注解
使用debug启动,确实smsComponent为null我用的Junit4,加上了@RunWith(SpringRunner.class)后启动成功了