2022年9月4日
摘要:
地址栏访问 chrome://flags/#extensions-on-chrome-urls , Extensions on chrome:// URLs 设置为 Enable; 更多工具,扩展程序,打开开发者模式; 拖拽安装扩展插件即可
阅读全文
posted @ 2022-09-04 16:32
xiaofei01gm
阅读(173)
推荐(0)
2022年8月22日
摘要:
<property name="log_dir" value="E:\\Project\\The_Log\\Logack_Demo\\output\\"/> <!-- 文件输出 --> <appender name="file" class="ch.qos.logback.core.FileAppe
阅读全文
posted @ 2022-08-22 16:47
xiaofei01gm
阅读(110)
推荐(0)
摘要:
ELK 是elastic公司提供的一套完整的日志收集、展示解决方案,是三个产品的首字母缩写,分别是ElasticSearch、Logstash 和 Kibana: ElasticSearch简称ES,由Java 语言编写,它是一个建立在全文搜索引擎Apache Lucene基础上的、实时的、分布式的
阅读全文
posted @ 2022-08-22 16:38
xiaofei01gm
阅读(75)
推荐(0)
2022年8月21日
摘要:
JDK1.7优化后的try-with-resource语句,写在()里面的流对象对应的类都实现了自动关闭接口AutoCloseable try (创建流对象语句,如果多个,使用';'隔开) { // 读写数据 } catch (IOException e) { e.printStackTrace()
阅读全文
posted @ 2022-08-21 14:33
xiaofei01gm
阅读(2129)
推荐(0)
2022年8月13日
posted @ 2022-08-13 21:44
xiaofei01gm
阅读(11)
推荐(0)
2021年3月5日
摘要:
// "%04d" 取4位数 String.format("%04d", 19)
阅读全文
posted @ 2021-03-05 23:33
xiaofei01gm
阅读(188)
推荐(0)
摘要:
java格式化时间到毫秒:SimpleDateFormat formatter = new SimpleDateFormat("dd-MMM-yyyy HH:mm:ss:SSS");String formatStr =formatter.format(new Date(); 参数说明: Symbol
阅读全文
posted @ 2021-03-05 09:53
xiaofei01gm
阅读(1817)
推荐(0)
2021年3月4日
摘要:
// 延时3秒执行任务 ScheduledExecutorService scheduledThreadPool = Executors.newScheduledThreadPool(5);scheduledThreadPool.schedule(new Runnable() { public vo
阅读全文
posted @ 2021-03-04 09:55
xiaofei01gm
阅读(229)
推荐(0)
2021年3月3日
摘要:
Date date = new Date();SimpleDateFormat dateFm = new SimpleDateFormat("EEEE");String currSun = dateFm.format(date); // "星期二".equals(currSun) || "Tuesd
阅读全文
posted @ 2021-03-03 10:23
xiaofei01gm
阅读(202)
推荐(0)
摘要:
Calendar calendar = Calendar.getInstance(); int hour = calendar.get(Calendar.HOUR_OF_DAY); // 24小时制 Calendar calendar = Calendar.getInstance();int hou
阅读全文
posted @ 2021-03-03 10:21
xiaofei01gm
阅读(7979)
推荐(0)