随笔分类 -  java语言

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

java语言
import java.net.Socket;
摘要: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 阅读(203) 评论(0) 推荐(0) 编辑

StringBuffer类
摘要: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 阅读(222) 评论(0) 推荐(0) 编辑

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

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

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

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

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

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

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

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

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

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

java.util.ArrayList;
摘要: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 阅读(57) 评论(0) 推荐(0) 编辑

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

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

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

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

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

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

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

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

java读取一个文件到byte数组
摘要:BufferedInputStream in = new BufferedInputStream(new FileInputStream("/media/music/hello.ogg")); ByteArrayOutputStream out = new ByteArrayOutputStream 阅读全文

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

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

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

Java VisualVMJava VisualVM
摘要:Java VisualVM 阅读全文

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

java queue
摘要:AbstractQueue BlockingQueue 阅读全文

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

Error:java: 无效的标记: -parameters
摘要:https://blog.csdn.net/qq_32370913/article/details/103023621 阅读全文

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

AxisWsClient
摘要:AxisWsClient 调用webservice 阅读全文

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

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

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

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

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

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

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示