2020年12月1日

摘要: 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 阅读(215) 评论(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 阅读(227) 评论(0) 推荐(0)
摘要: private void closeSocket() { try { socket.close(); } catch (IOException e) { } } IOException 阅读全文
posted @ 2020-12-01 22:48 lydstory 阅读(830) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/wang-yaz/p/10574825.html 阅读全文
posted @ 2020-12-01 22:42 lydstory 阅读(137) 评论(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 阅读(37) 评论(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 阅读(520) 评论(0) 推荐(0)
摘要: import com.sofosofi.watermark.config.SystemParam;自己写的类 调用import 类似c c++的include 指向自己写的类 阅读全文
posted @ 2020-12-01 21:21 lydstory 阅读(752) 评论(0) 推荐(0)
摘要: package test.filter; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletCon 阅读全文
posted @ 2020-12-01 21:14 lydstory 阅读(106) 评论(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 阅读(61) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/liushui-sky/p/9723397.html 阅读全文
posted @ 2020-12-01 14:39 lydstory 阅读(97) 评论(0) 推荐(0)

导航