diff --git a/pom.xml b/pom.xml
index 36a52c7..831eb48 100644
--- a/pom.xml
+++ b/pom.xml
@@ -74,6 +74,11 @@
fastjson
2.0.32
+
+ com.taobao.arthas
+ arthas-boot
+ 3.7.1
+
diff --git a/src/main/java/com/vehicle/controller/VehicleOnlineController.java b/src/main/java/com/vehicle/controller/VehicleOnlineController.java
index b649723..fbf6181 100644
--- a/src/main/java/com/vehicle/controller/VehicleOnlineController.java
+++ b/src/main/java/com/vehicle/controller/VehicleOnlineController.java
@@ -52,19 +52,20 @@ public class VehicleOnlineController {
@PostMapping("/upd")
public void updRedis() {
- List strings = redisService.getCacheList("vin");
- redisService.deleteObject("vin");
-
- Collections.addAll(strings, "123456", "888888");
+// List strings = redisService.getCacheList("vin");
+// redisService.deleteObject("vin");
+//
+// Collections.addAll(strings, "123456", "888888");
// System.out.println(cacheList);
- redisService.setCacheList("vin", strings);
+//
+ log.info("你好java");
}
@PostMapping("/fence/{vin}")
public void fence(@PathVariable String vin) {
// ArrayList fenceList = new ArrayList<>();
// fenceList.add("fenceEvent");
- redisService.setCacheObject(vin, "java", 10L, TimeUnit.SECONDS);
+
}
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 23c5501..73d965f 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -25,3 +25,6 @@ spring:
publisher-returns: true #确认消息已发送到队列(Queue)
server:
port: 8067
+arthas:
+ agent:
+ args: -Darthas.telnet.port=7777