master
冯凯 2023-12-05 09:08:07 +08:00
parent b04bd0ce13
commit b0305ca9ee
2 changed files with 11 additions and 1 deletions

View File

@ -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

View File

@ -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);
}
}