基础模板

master
Saisai Liu 2024-05-24 21:08:19 +08:00
parent 3ecc09bb50
commit ffa909eece
4 changed files with 12 additions and 12 deletions

View File

@ -1,4 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" /> <component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="MavenProjectsManager"> <component name="MavenProjectsManager">

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="VcsDirectoryMappings"> <component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" /> <mapping directory="" vcs="Git" />
</component> </component>
</project> </project>

View File

@ -86,7 +86,7 @@ forest:
# 服务器配置 # 服务器配置
mqtt: mqtt:
server: server:
host: tcp://fluxmq.muyu.icu:1883 host: tcp://39.98.45.160:1883
topic: test1 topic: test1
admin: admin:
host: http://127.0.0.1:${server.port} host: http://127.0.0.1:${server.port}

View File

@ -1,4 +1,4 @@
package com; package com.mobai;
import com.muyu.VehicleSimulationApplication; import com.muyu.VehicleSimulationApplication;
import com.muyu.common.Result; import com.muyu.common.Result;
@ -21,14 +21,15 @@ public class AdminTest {
@Test @Test
public void vehicleConnTest(){ public void vehicleConnTest(){
Result<String> result = clientAdmin.vehicleConnection( // Result<String> result = clientAdmin.vehicleConnection(
VehicleConnectionReq.builder() // VehicleConnectionReq.builder()
.vin("VIN1234567894") // .vin("VIN1234567894")
.timestamp(String.valueOf(System.currentTimeMillis())) // .timestamp(String.valueOf(System.currentTimeMillis()))
.userName("156841600") // .userName("156841600")
.nonce("134812") // .nonce("134812")
.build() // .build()
); // );
Result<Object> result = new Result<>();
System.out.println(result); System.out.println(result);
} }
} }