随笔分类 -  java语言

上一页 1 2 3 4 5 6 7 8 9 下一页

java语言
摘要:OutputStream out = socket.getOutputStream(); out.write(toBytes(cmd)); InputStream in = socket.getInputStream(); while ((len = in.read(bytes)) != -1) { 阅读全文

posted @ 2020-12-01 23:10 lydstory 阅读(218) 评论(0) 推荐(0)

摘要:public class StringBufferDemo { public static void main(String args[]) { StringBuffer sb = new StringBuffer("hello"); System.out.println("buffer ="+sb 阅读全文

posted @ 2020-12-01 23:06 lydstory 阅读(228) 评论(0) 推荐(0)

摘要:private void closeSocket() { try { socket.close(); } catch (IOException e) { } } IOException 阅读全文

posted @ 2020-12-01 22:48 lydstory 阅读(831) 评论(0) 推荐(0)

摘要:https://www.cnblogs.com/wang-yaz/p/10574825.html 阅读全文

posted @ 2020-12-01 22:42 lydstory 阅读(140) 评论(0) 推荐(0)

摘要:import java.util.concurrent.ConcurrentLinkedQueue; import java.util.concurrent.ConcurrentLinkedQueue; public class ConQueue { public static void main( 阅读全文

posted @ 2020-12-01 21:45 lydstory 阅读(41) 评论(0) 推荐(0)

摘要:背景:springboot项目 使用条件(a) 在 application.properties(或.yaml)里配置相应值,比如想使用@Value("${a.b}"), 那么application里应该有:a.b=xxx(b) 使用@Value所在类必须是由spring管理的,比如加上@Confi 阅读全文

posted @ 2020-12-01 21:34 lydstory 阅读(535) 评论(0) 推荐(0)

摘要:import com.sofosofi.watermark.config.SystemParam;自己写的类 调用import 类似c c++的include 指向自己写的类 阅读全文

posted @ 2020-12-01 21:21 lydstory 阅读(752) 评论(0) 推荐(0)

摘要:import java.util.ArrayList; public class Hello { public static void main(String[] args) { ArrayList<String> list = new ArrayList<String>(); list.add(" 阅读全文

posted @ 2020-12-01 21:03 lydstory 阅读(63) 评论(0) 推荐(0)

摘要:mysql jdbc 时区 mysql jdbc 时区 asia/shanghai mysql 调用错误 阅读全文

posted @ 2020-11-25 17:23 lydstory 阅读(501) 评论(0) 推荐(0)

摘要:MINA 简介:当客户首次访问采用MINA编写的程序时,IoAcceptor作为线程运行,负责接受来自客户的请求。当有客户请求连接时,创建一个 Session,该Session与IoProcessor、SocketChannel以及IOService联系起来。IoProcessor也作为 另外一个线 阅读全文

posted @ 2020-11-24 14:37 lydstory 阅读(100) 评论(0) 推荐(0)

摘要:https://www.infoq.cn/article/2007/06/not-yet-commons-ssl 阅读全文

posted @ 2020-11-23 23:05 lydstory 阅读(234) 评论(0) 推荐(0)

摘要:public void testDESBytes3() throws Exception { /* char[] pwd = {'!', 'E', 'i', 'k', 'o', '?'}; byte[] enc = OpenSSL.encrypt("des", pwd, "全世界无产阶级者联合起来" 阅读全文

posted @ 2020-11-23 22:14 lydstory 阅读(360) 评论(0) 推荐(0)

摘要:BufferedInputStream in = new BufferedInputStream(new FileInputStream("/media/music/hello.ogg")); ByteArrayOutputStream out = new ByteArrayOutputStream 阅读全文

posted @ 2020-11-23 21:49 lydstory 阅读(496) 评论(0) 推荐(0)

摘要:使用jvisualvm的jstatd方式远程监控Java程序 阅读全文

posted @ 2020-11-23 15:38 lydstory 阅读(94) 评论(0) 推荐(0)

摘要:Java VisualVM 阅读全文

posted @ 2020-11-23 14:56 lydstory 阅读(64) 评论(0) 推荐(0)

摘要:AbstractQueue BlockingQueue 阅读全文

posted @ 2020-11-21 15:48 lydstory 阅读(60) 评论(0) 推荐(0)

摘要:https://blog.csdn.net/qq_32370913/article/details/103023621 阅读全文

posted @ 2020-11-21 15:34 lydstory 阅读(304) 评论(0) 推荐(0)

摘要:AxisWsClient 调用webservice 阅读全文

posted @ 2020-11-21 15:03 lydstory 阅读(65) 评论(0) 推荐(0)

摘要:https://www.cnblogs.com/qianzf/p/10843136.html 阅读全文

posted @ 2020-11-21 14:59 lydstory 阅读(43) 评论(0) 推荐(0)

摘要:java 蓝牙协议 java 蓝牙协议 阅读全文

posted @ 2020-11-21 13:31 lydstory 阅读(427) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 下一页

导航