chore: 清理根目录重复实体、崩溃日志与示例配置等机械垃圾
This commit is contained in:
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -1,26 +0,0 @@
|
||||
#-------------------------------------------------------------------------------
|
||||
# Redis客户端配置样例
|
||||
# 每一个分组代表一个Redis实例
|
||||
# 无分组的Pool配置为所有分组的共用配置,如果分组自己定义Pool配置,则覆盖共用配置
|
||||
# 池配置来自于:https://www.cnblogs.com/jklk/p/7095067.html
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
#----- 默认(公有)配置
|
||||
# 地址,默认localhost
|
||||
host = 127.0.0.1
|
||||
# 端口,默认6379
|
||||
port = 6379
|
||||
# 超时,默认2000
|
||||
timeout = 2000
|
||||
# 连接超时,默认timeout
|
||||
connectionTimeout = 2000
|
||||
# 读取超时,默认timeout
|
||||
soTimeout = 2000
|
||||
# 密码,默认无
|
||||
password =
|
||||
# 数据库序号,默认0
|
||||
database = 0
|
||||
# 客户端名,默认"Hutool"
|
||||
clientName = gxtyzx
|
||||
# SSL连接,默认false
|
||||
ssl = false;
|
||||
@@ -1,30 +0,0 @@
|
||||
package com.gxwebsoft;
|
||||
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.data.redis.core.StringRedisTemplate;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@SpringBootTest
|
||||
public class RedisTest {
|
||||
@Resource
|
||||
private StringRedisTemplate stringRedisTemplate;
|
||||
//
|
||||
// @Test
|
||||
// public void test(){
|
||||
//// stringRedisTemplate.opsForValue().set("test:add:2",Long.toString(1L));
|
||||
//// stringRedisTemplate.opsForValue().increment("test:add:2",10L);
|
||||
//// stringRedisTemplate.opsForValue().decrement("test:add:2",2L);
|
||||
//// stringRedisTemplate.opsForValue().append("test:add:2","ssss");
|
||||
// HashMap<String, String> map = new HashMap<>();
|
||||
// map.put("name","李四");
|
||||
// map.put("phone","13800138001");
|
||||
// HashMap<String, String> map2 = new HashMap<>();
|
||||
// map2.put("name","赵六");
|
||||
// map2.put("phone","13800138001");
|
||||
// HashMap<String, String> map3 = new HashMap<>();
|
||||
// map3.put("name","张三");
|
||||
// map3.put("phone","13800138001");
|
||||
// stringRedisTemplate.opsForSet().add("test:set:2", JSONUtil.toJSONString(map),JSONUtil.toJSONString(map2),JSONUtil.toJSONString(map3));
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user