基础模板
parent
3ecc09bb50
commit
ffa909eece
|
@ -1,4 +1,3 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="MavenProjectsManager">
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
|
@ -86,7 +86,7 @@ forest:
|
|||
# 服务器配置
|
||||
mqtt:
|
||||
server:
|
||||
host: tcp://fluxmq.muyu.icu:1883
|
||||
host: tcp://39.98.45.160:1883
|
||||
topic: test1
|
||||
admin:
|
||||
host: http://127.0.0.1:${server.port}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com;
|
||||
package com.mobai;
|
||||
|
||||
import com.muyu.VehicleSimulationApplication;
|
||||
import com.muyu.common.Result;
|
||||
|
@ -21,14 +21,15 @@ public class AdminTest {
|
|||
|
||||
@Test
|
||||
public void vehicleConnTest(){
|
||||
Result<String> result = clientAdmin.vehicleConnection(
|
||||
VehicleConnectionReq.builder()
|
||||
.vin("VIN1234567894")
|
||||
.timestamp(String.valueOf(System.currentTimeMillis()))
|
||||
.userName("156841600")
|
||||
.nonce("134812")
|
||||
.build()
|
||||
);
|
||||
// Result<String> result = clientAdmin.vehicleConnection(
|
||||
// VehicleConnectionReq.builder()
|
||||
// .vin("VIN1234567894")
|
||||
// .timestamp(String.valueOf(System.currentTimeMillis()))
|
||||
// .userName("156841600")
|
||||
// .nonce("134812")
|
||||
// .build()
|
||||
// );
|
||||
Result<Object> result = new Result<>();
|
||||
System.out.println(result);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue