Posted on | by liu
wps三线格怎么画,怎么使用banner,港版6怎么刷springboot怎么启动测试package io.geekidea.fastspringboot.test;import lombok.extern.slf4j.Slf4j;import org.junit.Test;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.data.redis.core.RedisTemplate;/** * @author MrLiu * @date 2018/11/10 */@Slf4jpublic class TestRedisTemplate extends BaseTest{ @Autowired private RedisTemplate redisTemplate; @Test public void test(){ redisTemplate.opsForValue().set(“hello”,”Hello Redis…”); Object hello = redisTemplate.opsForValue().get(“hello”); log.debug(“hello = ” + hello); }}
参考:
https://github.com/geekidea/fast-spring-boot/blob/master/src/test/java/io/geekidea/fastspringboot/test/TestRedisTemplate.java