学习笔录-SPRING BOOT

【已解决】springboot在使用redisTemplate的测试的时候报空指针

在使用springboot项目中,使用RedisTemplate在Junit测试的时候,报RedisTemplate空指针:来看看修改前:修改后:在类上加入:@RunWith(SpringRunner.class)这个注解。

在使用springboot项目中,使用RedisTemplate在Junit测试的时候,

原创不易,完成人机校验,阅读全文

相关推荐