package com.cesat.dao;
import java.util.logging.Logger;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class SpringbootRedisApplicationTests {
public static org.slf4j.Logger logger = LoggerFactory.getLogger(SpringbootRedisApplicationTests.class);
@Test
public void contextLoads() {
}
@Autowired
RedisDao redisDao;
@Test
public void testRedis() {
redisDao.setKey("name", "forezp");
redisDao.setKey("age", "11");
logger.info(redisDao.getValue("name"));
logger.info(redisDao.getValue("age"));
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
springBoot集成Redis源码
共30个文件
java:5个
class:5个
properties:4个
1星 需积分: 24 63 下载量 74 浏览量
2017-11-27
14:01:52
上传
评论
收藏 60KB ZIP 举报
温馨提示
springBoot集成Redis源码,springBoot集成Redis源码,springBoot集成Redis源码
资源推荐
资源详情
资源评论
收起资源包目录
springBootRedis.zip (30个子文件)
springBootRedis
pom.xml 2KB
target
test-classes
com
cesat
SpringBootRedisApplicationTests.class 641B
m2e-wtp
web-resources
META-INF
maven
com.cesat
springBootRedis
pom.xml 2KB
pom.properties 238B
MANIFEST.MF 356B
classes
application.properties 241B
com
cesat
SpringBootRedisApplication.class 723B
dao
SpringbootRedisApplicationTests.class 1KB
RedisDao.class 2KB
ServletInitializer.class 867B
.settings
org.eclipse.m2e.core.prefs 93B
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.common.project.facet.core.xml 252B
org.eclipse.core.resources.prefs 150B
org.eclipse.wst.common.component 686B
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.validation.prefs 48B
.jsdtscope 560B
org.eclipse.jdt.core.prefs 422B
src
test
java
com
cesat
SpringBootRedisApplicationTests.java 335B
main
webapp
resources
application.properties 241B
templates
static
java
com
cesat
dao
RedisDao.java 701B
SpringbootRedisApplicationTests.java 796B
ServletInitializer.java 400B
SpringBootRedisApplication.java 319B
.project 1KB
.classpath 1KB
.gitignore 249B
.mvn
wrapper
maven-wrapper.jar 46KB
maven-wrapper.properties 110B
共 30 条
- 1
资源评论
- hl6487775802018-08-22浪费积分,什么都没有
duguxingfeng
- 粉丝: 36
- 资源: 38
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功