junit profile 发表评论 458 viewsA+所属分类:测试 @ActiveProfiles("devhomesea")public class RedisTest { @Autowired private RedisService redisService; @Test public void test(){ String value = redisService.getValue("test"); System.out.println(value); }} 赞 0 赏 分享