Commit e0fa2381216413d536c505b111fdfa6b6ecf93ad
1 parent
191a8018
Exists in
master
20201010
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
cloud/dahua/src/main/java/com/example/dahua/MyTask.java
@@ -66,9 +66,9 @@ public class MyTask implements ApplicationRunner { | @@ -66,9 +66,9 @@ public class MyTask implements ApplicationRunner { | ||
66 | public void run(ApplicationArguments args) throws Exception { | 66 | public void run(ApplicationArguments args) throws Exception { |
67 | // 121.40.109.21 | 67 | // 121.40.109.21 |
68 | 68 | ||
69 | -// LoginModule.init(disConnect, haveReConnect); // 打开工程,初始化 | 69 | + LoginModule.init(disConnect, haveReConnect); // 打开工程,初始化 |
70 | 70 | ||
71 | -// autoRegister();//自注册 | 71 | + autoRegister();//自注册 |
72 | 72 | ||
73 | // System.out.println(" sendRecordDao:"+sendRecordDao.getSenSuccess()); | 73 | // System.out.println(" sendRecordDao:"+sendRecordDao.getSenSuccess()); |
74 | } | 74 | } |
@@ -83,6 +83,7 @@ public class MyTask implements ApplicationRunner { | @@ -83,6 +83,7 @@ public class MyTask implements ApplicationRunner { | ||
83 | * 开启监听服务 | 83 | * 开启监听服务 |
84 | */ | 84 | */ |
85 | 85 | ||
86 | + System.out.println("new Utils().getHostAddress():"+new Utils().getHostAddress()); | ||
86 | AutoRegisterModule.startServer(new Utils().getHostAddress(), 9500, servicCallback); | 87 | AutoRegisterModule.startServer(new Utils().getHostAddress(), 9500, servicCallback); |
87 | 88 | ||
88 | } | 89 | } |