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