代码合并
This commit is contained in:
@@ -61,6 +61,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba</groupId>
|
<groupId>com.alibaba</groupId>
|
||||||
<artifactId>druid-spring-boot-starter</artifactId>
|
<artifactId>druid-spring-boot-starter</artifactId>
|
||||||
|
<version>1.2.18</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.springfox</groupId>
|
<groupId>io.springfox</groupId>
|
||||||
@@ -71,7 +72,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.baomidou</groupId>
|
<groupId>com.baomidou</groupId>
|
||||||
<artifactId>mybatis-plus-boot-starter</artifactId>
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||||
<version>3.3.0</version>
|
<version>3.5.3.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -157,11 +158,6 @@
|
|||||||
<groupId>com.zaxxer</groupId>
|
<groupId>com.zaxxer</groupId>
|
||||||
<artifactId>HikariCP</artifactId>
|
<artifactId>HikariCP</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>com.alibaba</groupId>
|
|
||||||
<artifactId>druid-spring-boot-starter</artifactId>
|
|
||||||
<version>1.1.13</version>
|
|
||||||
</dependency>
|
|
||||||
<!--volvo-->
|
<!--volvo-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.volvo</groupId>
|
<groupId>com.volvo</groupId>
|
||||||
|
|||||||
@@ -12,10 +12,7 @@ import org.apache.rocketmq.spring.core.RocketMQTemplate;
|
|||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
||||||
import org.springframework.data.redis.core.RedisTemplate;
|
import org.springframework.data.redis.core.RedisTemplate;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
import java.time.Instant;
|
import java.time.Instant;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
@@ -65,15 +62,19 @@ public class RedisTestController {
|
|||||||
}
|
}
|
||||||
@PostMapping("/del")
|
@PostMapping("/del")
|
||||||
@ApiOperation(value = "del")
|
@ApiOperation(value = "del")
|
||||||
public ResultMsg<Object> del(@RequestBody String key) {
|
public ResultMsg<Object> del(@RequestParam("key") String key, @RequestParam("nameAuth") String nameAuth) {
|
||||||
log.info("aiAnalyze queryRedis : {}",key);
|
log.info("aiAnalyze queryRedis : {}",key);
|
||||||
redisTemplate.opsForZSet().removeRange(key, 0, -1);
|
if(nameAuth.equals("kb2f78sQCUvg")){
|
||||||
Set<String> getRedisSet = redisTemplate.opsForZSet().range(key, 0, -1);
|
redisTemplate.opsForZSet().removeRange(key, 0, -1);
|
||||||
log.info("removeRange:{}" , getRedisSet);
|
Set<String> getRedisSet = redisTemplate.opsForZSet().range(key, 0, -1);
|
||||||
redisTemplate.delete(key);
|
log.info("removeRange:{}" , getRedisSet);
|
||||||
Set<String> getredisSet2 = redisTemplate.opsForZSet().range(key, 0, -1);
|
redisTemplate.delete(key);
|
||||||
log.info("delete:{}", getredisSet2);
|
Set<String> getredisSet2 = redisTemplate.opsForZSet().range(key, 0, -1);
|
||||||
return ResultMsg.ok(getredisSet2);
|
log.info("delete:{}", getredisSet2);
|
||||||
|
return ResultMsg.ok(getredisSet2);
|
||||||
|
}
|
||||||
|
return ResultMsg.ok(null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user