Ver código fonte

增加配置文件读取

tags/v1.0.0^2
林万龙 3 anos atrás
pai
commit
3343cf9669
1 arquivos alterados com 2 adições e 1 exclusões
  1. +2
    -1
      src/main/java/com/telpo/dipperposition/common/SocketClient.java

+ 2
- 1
src/main/java/com/telpo/dipperposition/common/SocketClient.java Ver arquivo

@@ -41,7 +41,7 @@ public class SocketClient {
OutputStream os=socket.getOutputStream();
PrintWriter pw=new PrintWriter(os);
// TODO 发生命令
String info="用户名:Tom,用户密码:123456";
//String info="用户名:Tom,用户密码:123456";
pw.write(astCmd);
pw.flush();
socket.shutdownOutput();
@@ -67,6 +67,7 @@ public class SocketClient {
is.close();
pw.close();
os.close();
log.debug(ackResult);
return ackResult;
} catch (IOException e) {
log.error("Socket sendCmd Error:" + e.getMessage());


Carregando…
Cancelar
Salvar