摘要: 1. 如果不是在循环体中进行字符串拼接的话,直接使用 String 的 “+” 就好了。 2. 单线程循环中操作大量字符串数据 → StringBuilder.append() 3. 多线程循环中操作大量字符串数据 → StringBuffer.append() https://cloud.tenc 阅读全文
posted @ 2020-07-23 19:52 下午喝什么茶 阅读(130) 评论(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 下午喝什么茶 阅读(7089) 评论(0) 推荐(1) 编辑