07 2020 档案

摘要:以前: 很多日志框架都不支持{}模板的写法(如Log4j1.X, Apache Commons Logging),于是只能通过字符串拼接来输出日志内容: log.debug("debug日志 " + info); 这样一来,每当JVM执行到此时,不管你当前的日志级别是多少,都会执行一次字符串拼接,然 阅读全文
posted @ 2020-07-29 11:40 下午喝什么茶 阅读(148) 评论(0) 推荐(0) 编辑
摘要:1. 如果不是在循环体中进行字符串拼接的话,直接使用 String 的 “+” 就好了。 2. 单线程循环中操作大量字符串数据 → StringBuilder.append() 3. 多线程循环中操作大量字符串数据 → StringBuffer.append() https://cloud.tenc 阅读全文
posted @ 2020-07-23 19:52 下午喝什么茶 阅读(132) 评论(0) 推荐(0) 编辑
摘要:如图:show me the code 参考: https://mp.baomidou.com/guide/wrapper.html#or 扩展:一般遇到这种查询需求,in和or都可以实现,比如上面的查询sql也可以写成:select * from table where xxx = ? and c 阅读全文
posted @ 2020-07-23 19:49 下午喝什么茶 阅读(7158) 评论(0) 推荐(1) 编辑
摘要:public class Love { public static void main(String[] args) { int year = 0; do{ System.out.println("i love you--》" + year); year+=1; }while(year <= 100 阅读全文
posted @ 2020-07-04 19:08 下午喝什么茶 阅读(133) 评论(0) 推荐(0) 编辑

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