upd
parent
b04bd0ce13
commit
b0305ca9ee
|
@ -1,7 +1,7 @@
|
|||
#起始镜像
|
||||
FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/openjdk:17-8.6
|
||||
#暴露端口号
|
||||
EXPOSE 8066
|
||||
EXPOSE 8067
|
||||
#挂载目录的位置
|
||||
VOLUME /home/logs/vehicleTest
|
||||
#构建复制外部文件到docker
|
||||
|
|
|
@ -49,4 +49,14 @@ public class VehicleOnlineController {
|
|||
|
||||
}
|
||||
|
||||
@PostMapping("/upd")
|
||||
public void updRedis(){
|
||||
List<String> strings = redisService.getCacheList("vin");
|
||||
redisService.deleteObject("vin");
|
||||
|
||||
Collections.addAll(strings,"123456","888888");
|
||||
// System.out.println(cacheList);
|
||||
redisService.setCacheList("vin",strings);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue