forked from integrated_whb/integrated_whb
修改分页总条数显示
parent
6ce8b6669e
commit
cb0819f3e3
|
@ -1,5 +1,6 @@
|
||||||
package com.zcloud.config;
|
package com.zcloud.config;
|
||||||
|
|
||||||
|
import com.zcloud.plugins.websocketFace.FaceServer;
|
||||||
import org.java_websocket.WebSocketImpl;
|
import org.java_websocket.WebSocketImpl;
|
||||||
import org.springframework.boot.ApplicationArguments;
|
import org.springframework.boot.ApplicationArguments;
|
||||||
import org.springframework.boot.ApplicationRunner;
|
import org.springframework.boot.ApplicationRunner;
|
||||||
|
@ -17,7 +18,22 @@ public class StartWebsocketServer implements ApplicationRunner{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run(ApplicationArguments var1) throws Exception{
|
public void run(ApplicationArguments var1) throws Exception{
|
||||||
|
startWebsocketInstantFace(); //启动定时人脸识别服务
|
||||||
System.out.println("-------------------系统启动成功-------------------");
|
System.out.println("-------------------系统启动成功-------------------");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 启动定时人脸识别服务
|
||||||
|
*/
|
||||||
|
public void startWebsocketInstantFace(){
|
||||||
|
WebSocketImpl.DEBUG = false;
|
||||||
|
FaceServer s;
|
||||||
|
try {
|
||||||
|
String imPort = "8899"; //即时通讯端口
|
||||||
|
s = new FaceServer(Integer.parseInt(imPort));
|
||||||
|
s.start();
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue