摘要: /** * @author t * CyclicBarrier的计数器更像一个阀门, * 需要所有线程都到达, * 然后继续执行,计数器递增,提供reset功能,可以多次使用 */ public class CyclicBarrierDemo { public static void main(St 阅读全文
posted @ 2020-03-15 12:52 执笔coding 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 查看Linux版本:cat /etc/redhat-release 关机:shutdown -h now halt重启:shutdown -r now reboot删除文件:rm -f xxx删除文件夹及其中文件:rm -rf xxx创建多级目录:mkdir -p 复制:cp -r Ctrl + I 阅读全文
posted @ 2020-03-13 17:07 执笔coding 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 最近自己的个人网站也上线了,欢迎大家阅览 https://www.ushowtime.cn 阅读全文
posted @ 2020-03-11 18:31 执笔coding 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1、leftPush(K key, V value) 在变量左边添加元素值。 redisTemplate.opsForList().leftPush("list","a"); redisTemplate.opsForList().leftPush("list","b"); redisTemplate 阅读全文
posted @ 2020-03-06 20:25 执笔coding 阅读(1687) 评论(0) 推荐(0) 编辑
摘要: 1.第一步,下载ckeditor并引入js 官网链接: 打开下载地址 <script src="/ckeditor/ckeditor.js" type="text/javascript"></script> <script src="/ckeditor/config.js" type="text/j 阅读全文
posted @ 2020-03-05 19:12 执笔coding 阅读(174) 评论(0) 推荐(0) 编辑
摘要: functionName([[$(param)]]); 阅读全文
posted @ 2020-03-04 15:33 执笔coding 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 一、单例模式的优点: - 由于单例模式只生成一个实例,减少了系统性能开销,当一个对象的产生需要比较多的资源时,如读取配置、产生其他依赖对象时,则可以通过在应用启动时直接产生一个单例对象,然后永久驻留内存的方式来解决 - 单例模式可以在系统设置全局的访问点,优化共享资源访问,例如可以设计一个单例类,负 阅读全文
posted @ 2020-02-08 18:28 执笔coding 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 一、导入相关依赖(还需要配置好springmvc的环境) <!--文件上传--> <!-- https://mvnrepository.com/artifact/commons-fileupload/commons-fileupload --> <dependency> <groupId>commo 阅读全文
posted @ 2020-01-21 14:49 执笔coding 阅读(146) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 阅读全文
posted @ 2020-01-20 18:47 执笔coding 阅读(796) 评论(0) 推荐(0) 编辑
摘要: 一、搭建开发环境 1.1 引入相关依赖 <!-- https://mvnrepository.com/artifact/org.springframework/spring-context --> <dependency> <groupId>org.springframework</groupId> 阅读全文
posted @ 2020-01-20 17:12 执笔coding 阅读(235) 评论(0) 推荐(0) 编辑