Loading

上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 31 下一页
摘要: CentOS 7安装Nginx CentOS服务器正常运行; 检查是否已经安装有Nginx; find -name nginx 如果已经安装Nginx,请先卸载, yum remove nginx 如果本次卸载失败,不要慌!请继续按本教程操作; 找到原来的安装目录进行删除。一般情况下,Nginx会默 阅读全文
posted @ 2020-04-03 00:12 Rzk 阅读(346) 评论(0) 推荐(0) 编辑
摘要: /** 8锁:就是关于锁的8个问题* 先走发短信再走打电话,因为phone里面的两个方法加了synchronized锁* */public class Test1 { public static void main(String[] args) throws InterruptedException 阅读全文
posted @ 2020-04-01 16:07 Rzk 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 传统 synchronized 锁 这个例子在两个线程下是可以稳定运行,但要是再加两个线程下去的话会出问题为什么呢 因为在下面判断是if 因为if只会走一次 把if改为while,while一旦被修改了,另一个将进去等待/* * 线程之间的通信问题 :生产者和消费者问题! 等待唤醒,通知唤醒 * 线 阅读全文
posted @ 2020-04-01 15:13 Rzk 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Lock取代 synchronized的使用方法和语句, Condition取代了使用对象的监控方法。 Lock lock = new ReentrantLock();//公平锁 Condition condition = lock.newCondition(); // condition.awai 阅读全文
posted @ 2020-04-01 14:46 Rzk 阅读(270) 评论(0) 推荐(0) 编辑
摘要: HTML控制台显示<script type="text/javascript"> var student = JSON.parse('{"student":"小明","age":"19岁"}'); console.log(student) var user = { user:"小明", age:"1 阅读全文
posted @ 2020-03-31 22:17 Rzk 阅读(175) 评论(0) 推荐(0) 编辑
摘要: <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 阅读全文
posted @ 2020-03-31 17:38 Rzk 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 写个实体//等价于 在xml配置 <bean id="dog" class="com.rzk.pojo.Dog"/> @Component public class Dog { private String name; public String getDog() { return name; } 阅读全文
posted @ 2020-03-31 15:30 Rzk 阅读(544) 评论(0) 推荐(0) 编辑
摘要: applocationContext.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/ 阅读全文
posted @ 2020-03-29 22:26 Rzk 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 在终端输入命令 sudo apt-get -y install tree 阅读全文
posted @ 2020-03-29 00:40 Rzk 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 1,下载主题和图标 https://www.pling.com/s/Gnome/p/1309810/主题 https://www.pling.com/s/Gnome/browse/cat/132/ord/rating/ 图标 2,安装 themes和icons mkdir .themes .icon 阅读全文
posted @ 2020-03-27 12:01 Rzk 阅读(349) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 31 下一页