上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 37 下一页
摘要: 多个线程同时执行时,每个线程所需执行时间长短不一,优先处理已经完成的任务,而不是傻傻的等待第一个线程任务完成 Callable<String> c1 = () -> { TimeUnit.SECONDS.sleep(10); return "call 10s"; }; Callable<String 阅读全文
posted @ 2022-04-03 21:58 谷粒-笔记 阅读(115) 评论(0) 推荐(0)
摘要: windows netstat -ano | findstr 8080结果,最后一个是PIDTCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 8224 打开任务管理器,勾选PID,可以找到对应的应用或服务taskkill /pid 8224 /f CentOS 阅读全文
posted @ 2022-04-03 13:17 谷粒-笔记 阅读(75) 评论(0) 推荐(0)
摘要: for of for (let [index, item] of arr.entries()) { } for (const [index, item] of arr.entries()) { } 阅读全文
posted @ 2022-03-24 14:30 谷粒-笔记 阅读(23) 评论(0) 推荐(0)
摘要: VM options 需要以 -D 或 -X 或 -XX 开头,每个参数最好使用空格隔开-Dspring.profiles.active=dev-Dfile.encoding=UTF-8 program arguments 每个参数需要以空格隔开。否则将会被识别成一个参数,自己用的时候还得手动处理。 阅读全文
posted @ 2022-03-17 13:45 谷粒-笔记 阅读(3756) 评论(0) 推荐(0)
摘要: 1、解析为xml文档,处理html片段 1、解析为xml文档,处理html片段 字符串解析为xml文档,作用输入是什么样子的片断,输出业务什么样子的 String html = "<div>hello</div>"; Document doc = Jsoup.parse(html, "", Pars 阅读全文
posted @ 2022-03-04 14:26 谷粒-笔记 阅读(172) 评论(0) 推荐(0)
摘要: [[]]或[()]在Thymeleaf中被认为是 text inlined expressions 文本内联表达式,用于在纯文本中输出表达式值。在它们内部,我们可以使用任何类型的表达式,这些表达式在 th:text 或 th:utext 属性中也是有效的。 注意: [[${}]] 对应于 th:te 阅读全文
posted @ 2022-03-02 17:25 谷粒-笔记 阅读(617) 评论(0) 推荐(0)
摘要: 1、使用反斜杠进行转义 <span th:text="${title}" th:style="'font-family:\'MY_FONT_' + ${id} + '\''"></span> 2、使用文本替换语法 Literal substitutions表达式允许出现单引号且不需要转移 <span 阅读全文
posted @ 2022-03-02 13:50 谷粒-笔记 阅读(326) 评论(0) 推荐(0)
摘要: http://momentjs.cn/ npm install moment --save # npm yarn add moment # Yarn Install-Package Moment.js # NuGet spm install moment --save # spm meteor ad 阅读全文
posted @ 2022-02-17 14:25 谷粒-笔记 阅读(68) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/weixin_39922374/article/details/110665140 https://blog.csdn.net/weixin_45699541/article/details/126518330 正确地创建和使用索引是实现高性能查询的基础。 阅读全文
posted @ 2022-02-11 10:20 谷粒-笔记 阅读(64) 评论(0) 推荐(0)
摘要: 1. change 事件传参 @change="(val) => yourChange(val, index)" siteChange(val,index) { console.log("val",val); console.log("index",index); } 阅读全文
posted @ 2022-02-09 11:10 谷粒-笔记 阅读(397) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 37 下一页