junit profile

  • A+
所属分类:测试

@ActiveProfiles("devhomesea")
public class RedisTest {

   @Autowired
   private RedisService redisService;
   @Test

   public void test(){

       String value = redisService.getValue("test");
       System.out.println(value);
   }
}

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: