摘要: 阅读全文
posted @ 2020-05-17 20:12 Practical 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-04-15 17:42 Practical 阅读(141) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (scanner.hasNextLine()) { String input = scanner.nextLine(); 阅读全文
posted @ 2020-04-01 20:01 Practical 阅读(159) 评论(0) 推荐(0) 编辑
摘要: brew 是 Mac 下的一个包管理工具,类似于 centos 下的 yum,可以很方便地进行安装/卸载/更新各种软件包,例如:nodejs, elasticsearch, kibana, mysql, mongodb 等等,可以用来快速搭建各种本地环境,程序员必备工具 安装 brew /usr/b 阅读全文
posted @ 2019-12-01 17:29 Practical 阅读(948) 评论(0) 推荐(0) 编辑
摘要: Control + Space 基本的代码补全(补全任何类、方法、变量) Control + Shift + Space 智能代码补全(过滤器方法列表和变量的预期类型) Command + Shift + Enter 自动结束代码,行末自动添加分号 Command + P 显示方法的参数信息 Con 阅读全文
posted @ 2019-11-29 10:17 Practical 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 1.mybatis更新一条数据时,如果某字段为空,则不更新它,使用默认值? <update id="updateProduct" parameterType="Product" > update product_ <set> <if test="name != null">name=#{name}, 阅读全文
posted @ 2019-11-21 11:21 Practical 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 1.如果HashMap的大小超过了负载因子(load factor)定义的容量,怎么办? 默认的负载因子大小为0.75,也就是说,当一个map填满了75%的bucket时候,和其它集合类(如ArrayList等)一样,将会创建原来HashMap大小的两倍的bucket数组,来重新调整map的大小,并 阅读全文
posted @ 2019-11-19 19:38 Practical 阅读(1012) 评论(0) 推荐(0) 编辑
摘要: ByteBuffer Test: package java_guide; import java.nio.ByteBuffer; public class ByteBufferMethods { public static void main(String[] args) { //分配缓冲区(All 阅读全文
posted @ 2019-11-19 16:32 Practical 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 建表语句: CREATE TABLE `a_table` ( `a_id` int(11) DEFAULT NULL, `a_name` varchar(10) DEFAULT NULL, `a_part` varchar(10) DEFAULT NULL ) ENGINE=InnoDB DEFAU 阅读全文
posted @ 2019-11-15 10:24 Practical 阅读(482) 评论(0) 推荐(0) 编辑
摘要: 1.HashMap、HashSet源码解读 2.Http状态码、包头内容有哪些 响应头说明示例状态 Access-Control-Allow-Origin 指定哪些网站可以跨域源资源共享 Access-Control-Allow-Origin: * 临时 Accept-Patch 指定服务器所支持的 阅读全文
posted @ 2019-11-14 15:56 Practical 阅读(275) 评论(0) 推荐(0) 编辑