reSkyWallking
parent
7bf8236f3a
commit
207c7c66fa
5
pom.xml
5
pom.xml
|
@ -74,6 +74,11 @@
|
||||||
<artifactId>fastjson</artifactId>
|
<artifactId>fastjson</artifactId>
|
||||||
<version>2.0.32</version>
|
<version>2.0.32</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.taobao.arthas</groupId>
|
||||||
|
<artifactId>arthas-boot</artifactId>
|
||||||
|
<version>3.7.1</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
|
|
|
@ -52,19 +52,20 @@ public class VehicleOnlineController {
|
||||||
|
|
||||||
@PostMapping("/upd")
|
@PostMapping("/upd")
|
||||||
public void updRedis() {
|
public void updRedis() {
|
||||||
List<String> strings = redisService.getCacheList("vin");
|
// List<String> strings = redisService.getCacheList("vin");
|
||||||
redisService.deleteObject("vin");
|
// redisService.deleteObject("vin");
|
||||||
|
//
|
||||||
Collections.addAll(strings, "123456", "888888");
|
// Collections.addAll(strings, "123456", "888888");
|
||||||
// System.out.println(cacheList);
|
// System.out.println(cacheList);
|
||||||
redisService.setCacheList("vin", strings);
|
//
|
||||||
|
log.info("你好java");
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/fence/{vin}")
|
@PostMapping("/fence/{vin}")
|
||||||
public void fence(@PathVariable String vin) {
|
public void fence(@PathVariable String vin) {
|
||||||
// ArrayList<String> fenceList = new ArrayList<>();
|
// ArrayList<String> fenceList = new ArrayList<>();
|
||||||
// fenceList.add("fenceEvent");
|
// fenceList.add("fenceEvent");
|
||||||
redisService.setCacheObject(vin, "java", 10L, TimeUnit.SECONDS);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,3 +25,6 @@ spring:
|
||||||
publisher-returns: true #确认消息已发送到队列(Queue)
|
publisher-returns: true #确认消息已发送到队列(Queue)
|
||||||
server:
|
server:
|
||||||
port: 8067
|
port: 8067
|
||||||
|
arthas:
|
||||||
|
agent:
|
||||||
|
args: -Darthas.telnet.port=7777
|
||||||
|
|
Loading…
Reference in New Issue