
java
帅凯凯
这个作者很懒,什么都没留下…
展开
-
centos7 安装完配置网络
1.查看ONBOOT是否开启#ifcfg-enp0s3是网卡名,不同的机器是不一样的。cat /etc/sysconfig/network-scripts/ifcfg-enp0s3ONBOOT参数改为yes1.2 重启network#重启networkservice network restart2..使用yum provides ifconfig 来查看那个包提高ifconfig,并安装一下。 然后执行 yum install net-tools...原创 2021-04-09 08:46:20 · 876 阅读 · 0 评论 -
JRebel 不生效
缘起:选择Jrebel。由于springboot的热部署spring-boot-devtools 与shiro冲突,所以使用了第三方插件JRebel 。但是有时候JRebel经常遇到不生效的情况,针对自己的情况与大家分享。以下是我遇到的jrebel不生效的两种原因:1. 由于经常把一个项目复制多份的原因,一些项目配置为修改导致。rebel.xml文件的路径未修改2.debug configurations 中的配置不知什么时候被去掉了将Enable JRebel age.原创 2021-03-21 10:05:51 · 1733 阅读 · 0 评论 -
冒泡排序
//冒泡排序public void bubbleSort(int arr[]) { boolean didSwap; for(int i = 0, len = arr.length; i 1; i++) { didSwap = false; for(int j = 0; j 1; j++) { if(arr[j +原创 2017-03-19 20:00:03 · 220 阅读 · 0 评论 -
ArrayList源码学习
本质:数组两个成员(属性),elementData和size1.newnew的时候给elementData赋值了一个空数组 private static final Object[] EMPTY_ELEMENTDATA = {}; /** * The array buffer into which the elements of the ArrayList are stored. ...原创 2018-03-10 21:13:54 · 143 阅读 · 0 评论 -
LinkedList源码学习
1.node每个node,都包含前后两个,也被前后两个包含。(即双向链表结构) private static class Node<E> { E item; Node<E> next; Node<E> prev; Node(Node<E> prev, E element, Node<E&g...原创 2018-03-10 21:35:48 · 137 阅读 · 0 评论 -
Vector源码学习
the following is from:http://blessed24.javaeye.com/blog/7513361. Vector & ArrayList 1) Vector的方法都是同步的(Synchronized),是线程安全的(thread-safe),而ArrayList的方法不是,由于线程的同步必然要影响性能,因此,ArrayList的性能比Vector好。 2) ...转载 2018-03-10 21:40:26 · 201 阅读 · 0 评论 -
hashmap源码学习
1.本质Entry的数组static final Entry<?,?>[] EMPTY_TABLE = {};transient Entry<K,V>[] table = (Entry<K,V>[]) EMPTY_TABLE;static class Entry<K,V> implements Map.Entry<K,V> { ...原创 2018-03-19 15:47:57 · 182 阅读 · 0 评论