摘要:OutputStream out = socket.getOutputStream(); out.write(toBytes(cmd)); InputStream in = socket.getInputStream(); while ((len = in.read(bytes)) != -1) {
阅读全文
摘要:public class StringBufferDemo { public static void main(String args[]) { StringBuffer sb = new StringBuffer("hello"); System.out.println("buffer ="+sb
阅读全文
摘要:private void closeSocket() { try { socket.close(); } catch (IOException e) { } } IOException
阅读全文
摘要:https://www.cnblogs.com/wang-yaz/p/10574825.html
阅读全文
摘要:import java.util.concurrent.ConcurrentLinkedQueue; import java.util.concurrent.ConcurrentLinkedQueue; public class ConQueue { public static void main(
阅读全文
摘要:背景:springboot项目 使用条件(a) 在 application.properties(或.yaml)里配置相应值,比如想使用@Value("${a.b}"), 那么application里应该有:a.b=xxx(b) 使用@Value所在类必须是由spring管理的,比如加上@Confi
阅读全文
摘要:import com.sofosofi.watermark.config.SystemParam;自己写的类 调用import 类似c c++的include 指向自己写的类
阅读全文
摘要:import java.util.ArrayList; public class Hello { public static void main(String[] args) { ArrayList<String> list = new ArrayList<String>(); list.add("
阅读全文
摘要:mysql jdbc 时区 mysql jdbc 时区 asia/shanghai mysql 调用错误
阅读全文
摘要:MINA 简介:当客户首次访问采用MINA编写的程序时,IoAcceptor作为线程运行,负责接受来自客户的请求。当有客户请求连接时,创建一个 Session,该Session与IoProcessor、SocketChannel以及IOService联系起来。IoProcessor也作为 另外一个线
阅读全文
摘要:https://www.infoq.cn/article/2007/06/not-yet-commons-ssl
阅读全文
摘要:public void testDESBytes3() throws Exception { /* char[] pwd = {'!', 'E', 'i', 'k', 'o', '?'}; byte[] enc = OpenSSL.encrypt("des", pwd, "全世界无产阶级者联合起来"
阅读全文
摘要:BufferedInputStream in = new BufferedInputStream(new FileInputStream("/media/music/hello.ogg")); ByteArrayOutputStream out = new ByteArrayOutputStream
阅读全文
摘要:使用jvisualvm的jstatd方式远程监控Java程序
阅读全文
摘要:AbstractQueue BlockingQueue
阅读全文
摘要:https://blog.csdn.net/qq_32370913/article/details/103023621
阅读全文
摘要:AxisWsClient 调用webservice
阅读全文
摘要:https://www.cnblogs.com/qianzf/p/10843136.html
阅读全文