- 博客(32)
- 收藏
- 关注
原创 React+Material UI+SpringBoot+MyBatis+MySQL构建个人网页
地址 http://139.159.193.165/ 前端 React Material-UI(Google的一款React组件库,自称是世界上最受欢迎的React组件库。国内的蚂蚁金服的Ant Design也很不错) 源码:https://github.com/PoldiChen/know-about-me 后台: Spring Boot MyBatis MySQL 源码:https://git...
2019-03-24 17:49:25
1353
原创 2019年面试题合集
最新整理的面试题合集,包括Java、前端、web开发、HTTP、数据库、操作系统等,用markdown语法编辑。 https://github.com/PoldiChen/questions
2019-01-27 15:25:14
1169
原创 antd+react-router-dom实现导航菜单切换
antd导航菜单用的是官网的Layout示例:点击打开链接和react-router-dom结合,实现点击不同菜单切换到不同页面。源码已经上传到git:点击打开链接
2018-04-10 22:10:26
20713
3
原创 Java源码阅读-StringBuffer和StringBuilder
StringBuffer和StringBuilder都继承自AbstractStringBuilder,而AbstractStringBuilder和String都实现了CharSequence接口。 StringBuilder是非线程安全的,StringBuffer是线程安全的,很多方法都用synchronized修饰,所以效率较低。 StringBuffer的append方法 p
2017-08-02 17:22:39
394
原创 Java源码阅读-Vector
Vector的实现和ArrayList十分类似,不同的是Vector是线程安全的,很多方法都用synchronized修饰。 还有一个不同点是Vector每次扩容都是增加1倍,而ArrayList则是增加50%。 /** * Appends the specified element to the end of this Vector. * * @param e
2017-08-02 14:51:54
425
原创 Java源码阅读-Integer
/** * A constant holding the minimum value an {@code int} can * have, -231. */ public static final int MIN_VALUE = 0x80000000; // 最小值,-2的31次方 /** * A constant holding th
2017-08-02 10:37:56
412
原创 Java源码阅读-PriorityQueue
/** * Priority queue represented as a balanced binary heap: the two * children of queue[n] are queue[2*n+1] and queue[2*(n+1)]. The * priority queue is ordered by comparator, or by the
2017-07-31 11:44:27
685
原创 Java源码阅读-TreeMap
// Red-black mechanics private static final boolean RED = false; // 基于红黑树的数据结构 private static final boolean BLACK = true; 插入元素 /** * Associates the specified value with the speci
2017-07-31 10:26:40
419
原创 Java源码阅读-TreeSet
/** * The backing map. */ private transient NavigableMap m; // 引用了一个NavigableMap类型的变量,用来存储set的值 // Dummy value to associate with an Object in the backing Map private static fina
2017-07-31 09:55:16
310
原创 Java源码阅读-HashSet
private transient HashMap map; // 维护了一个HashMap的变量 // Dummy value to associate with an Object in the backing Map private static final Object PRESENT = new Object(); // 虚设的值 添加元素 /**
2017-07-30 22:37:28
426
原创 Java源码阅读-HashMap
添加元素 /** * Associates the specified value with the specified key in this map. * If the map previously contained a mapping for the key, the old * value is replaced. * * @param
2017-07-30 22:30:39
460
原创 Java源码阅读-ArrayList
/** * Default initial capacity. */ private static final int DEFAULT_CAPACITY = 10; // 默认的容量,10 /** * Shared empty array instance used for empty instances. */ private s
2017-07-30 13:10:55
303
原创 Java源码阅读-LinkedList
transient int size = 0; // 数组长度 /** * Pointer to first node. * Invariant: (first == null && last == null) || * (first.prev == null && first.item != null) */ tra
2017-07-30 11:42:57
379
原创 Java源码阅读-String类
/** * Compares this string to the specified object. The result is {@code * true} if and only if the argument is not {@code null} and is a {@code * String} object that represents the
2017-07-30 11:18:19
551
原创 http相关
1. POST和PUT的区别? 对于服务端的实现来说没什么区别,但从语义上来说PUT是幂等的,POST不是。 幂等是指一个同样的请求发送一个和多次对服务端的资源的更新效果是否相同,相同的话则是幂等的,反之则不是。 这里的区别是从http协议规范上来说的。
2017-03-02 21:08:48
389
原创 Java面试题
1. int和Integer的区别? int是基础数据类型,Integer是类型,是int的包装类。 装箱:把int包装成Integer Integet a = 100; 拆箱:把Integer类型的对象简化成int类型 int a = new Integer(100);
2017-02-12 21:38:34
788
原创 Maven相关
1. windows下安装maven配置及集成到myeclipse 系统变量添加MAVEN_HOME,值是maven解压的目录。 path变量添加maven的bin目录,%MAVEN_HOME%\bin 验证,打开cmd窗口,命令mvn -version,打印出版本信息即为配置成功。 settings.xml配置本地仓库的目录 <settings>节点下添加 <local...
2017-02-12 16:00:59
360
原创 centos安装java环境
查看yum库的Java安装包:yum -y list java* yum安装Java 8:yum -y install java-1.8.0-openjdk* 验证:java -version
2017-02-12 00:22:34
359
原创 github命令
clone项目 git clone git@github.com:userName/projectName.git git@github.com:userName/projectName.git可以从github页面的clone or download复制
2017-02-05 21:32:49
307
原创 centos安装github环境
(1)yum install git 如果遇到 Error: Cannot find a valid baseurl for repo: updates,可以试多几次。 (2)生成ssh key (3)在github页面添加一个ssh key (4)添加成功: (5)试一下clone一个项目:
2017-02-05 14:13:28
838
原创 centos7下安装php7
大致的过程参考了这篇文章:点击打开链接 但因为具体环境的不同,在配置的时候遇到的实际问题不太一样。 在执行./configure xxxxxxxxxxxxxxxxx的时候遇到了各种缺失的包: 1. 缺少libxml2: checking whether to enable LIBXML support... yes checking libxml2 install dir...
2016-06-11 15:07:05
704
原创 centos7下安装Apache
1. 使用yum安装的话十分简单,直接 # yum install httpd 2. 启动apache服务: # service httpd start 3. 查看状态: # service httpd status 4. 查看httpd版本 # httpd -v 5. 在浏览器中输入localhost,可以看到测试页
2016-06-11 13:41:33
517
原创 centos下安装composer
composer是一个php的依赖管理工具,是对一个项目的管理,一般不会作用在系统范围内。 【1】使用linux命令 curl -sS https://getcomposer.org/installer | php 下载安装 默认安装在当前目录下,可以加上参数自定义安装目录,如 curl -sS https://getcomposer.org/installer | php -- --
2016-06-05 11:12:00
420
原创 centos7安装mariadb替代mysql
当初装linux虚拟机的时候,本着什么都要最新的精神,直接装了centos7。 最近要安装mysql,尝遍了二进制安装,rpm包安装等各种方法,总是出现一些莫名其妙的错误。 baidu的时候才无意中发现,centos7默认不支持mysql,而是支持mariadb。 mariadb是mysql的一个分支,可以作为mysql的替代品。 安装也很简单,可以直接yum安装: # yum inst
2016-06-04 15:34:50
697
原创 window10下使用virtualbox+vagrant安装虚拟机
windows环境:win10 64位。 1. 下载安装virtualbox exe文件,直接双击安装 2. 下载安装vagrant msi文件,也是直接双击安装 3. 下载box文件 http://www.vagrantbox.es/ 各种系统和版本可选,选了当前最新的centos7 4. 创建一个vagrant工程目录,注意不是前面vagra
2016-05-27 21:43:24
6313
原创 Java知识点。
Strng字符串的值比较。 字符串的比较有值比较、对象比较。值比较主要比较两个字符串的字符序列,有equals()和compareTo()。 equals():字符序列相同结果则为true。 compareTo():基于unicode值逐个字符比较。返回首次出现的不同字符的差值,如M和m,M比m小32,返回-32。 如果长度不同,且短
2013-10-12 22:24:03
700
原创 【学习笔记】Hibernate(1)
2013年10月10日。 ORM(Object Relational Mapping): 对象到关系的映射,将数据库中的数据表映射成对象,也就是持久化类,对关系型数据库以对象的形式进行操作。 持久化类(*.java) 映射文件(*.hbm.xml) 配置文件(*.cfg.xml):hibernate.cfg.xml,配置的信息包括整个数据库的信息,如数据库的驱动、URL地址、
2013-10-10 10:32:22
642
原创 【学习笔记】JavaScript(2013-10-06)
像素(px)和点(pt) 点常用作字体大小的单位,像素用作层或其他对象的大小和位置的单位。 ============================================================================= 使用外部样式表 ==========================================================
2013-10-06 20:47:05
598
原创 【学习笔记】JavaScript(2013-10-05)
表单 form: 标签的属性: name:表单名称,可通过document.formName.子标签 来引用 method:get或post,向服务器传送数据的两种方式 action:CGI脚本 enctype:MIME类型 表单事件:onSubmit,onReset //返回false是阻止提交 document.forms.length 文档中的表单数量 do
2013-10-05 16:08:40
607
原创 【学习笔记】JavaScript(2013-10-04)
三种弹窗: window.alert(message);//只弹出提示 window.confirm(message);//弹出后选择确定或取消 window.prompt(message,default)//在弹出的窗口中输入,default是默认值 confirm,prompt方法需要变量来接受用户的响应。 ======================================
2013-10-04 21:57:47
602
原创 【学习笔记】JavaScript(2013-10-03)
href="#"表示连接到当前页面,其实是没有意义的,页面不会刷新。 重要的是要执行onclick后面的脚本代码。 ========================================================================= 事件处理程序通常被保存为document对象的属性。 如: document.onmousedown=MyFunc
2013-10-03 11:20:00
837
原创 关于document.子对象名的引用
html文档中有一个用来显示信息。 在js脚本中若想引用这个元素,改变其显示内容,不能通过document.info.value来引用。 若将textarea元素包含在中,即: 则在js中可以通过document.form1.info.value来改变其显示的内容。 因为form是document的子对象,textarea不是。 textare
2013-09-24 10:15:50
921
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人