摘要: // 将秒转化为时分秒 function formateSeconds(endTime){ let secondTime = parseInt(endTime)// 将传入的秒的值转化为Number let min = 0// 初始化分 let h =0// 初始化小时 let result='' 阅读全文
posted @ 2020-03-16 17:00 root-crypto 阅读(279) 评论(0) 推荐(0) 编辑
摘要: #日志格式 log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %p %c %m%n (%m和%n中间不能有空格,不然mybatis log plugin不能用) log4j.properties文件加入如下配 阅读全文
posted @ 2020-03-13 14:53 root-crypto 阅读(931) 评论(0) 推荐(0) 编辑
摘要: #查找文件或文件夹find / -name 'TRADEPROMO'#目录find /(查找范围) -name '查找关键字' -type d#文件find /(查找范围) -name 查找关键字 -print #启动 关闭tomcat./startup.sh ./shutdown.sh #查看端口 阅读全文
posted @ 2020-03-10 08:47 root-crypto 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 压缩 tar –cvf jpg.tar *.jpg // 将目录里所有jpg文件打包成 tar.jpg tar –czf jpg.tar.gz *.jpg // 将目录里所有jpg文件打包成 jpg.tar 后,并且将其用 gzip 压缩,生成一个 gzip 压缩过的包,命名为 jpg.tar.gz 阅读全文
posted @ 2020-03-04 10:32 root-crypto 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 查看8080端口占用情况 netstat -apn | grep 8080 结束4258进程 kill -9 4258 阅读全文
posted @ 2019-11-29 14:20 root-crypto 阅读(397) 评论(0) 推荐(0) 编辑
摘要: GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456'; FLUSH PRIVILEGES; 阅读全文
posted @ 2019-05-21 09:19 root-crypto 阅读(592) 评论(0) 推荐(0) 编辑
摘要: public class SnowFlakeUtil { private long workerId; private long datacenterId; private long sequence = 0L; private long twepoch = 1288834974657L; // Thu, 04 Nov 2010 01:42:54 GMT 标记时间... 阅读全文
posted @ 2019-04-24 10:29 root-crypto 阅读(840) 评论(0) 推荐(0) 编辑
摘要: 在 my.ini 的 [mysqld] 节点增加如下配置: 阅读全文
posted @ 2019-04-24 10:14 root-crypto 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 在 my.ini 的 [mysqld] 节点增加如下配置: 备份 还原 备份表结构 还原表结构 授权 阅读全文
posted @ 2019-04-22 17:15 root-crypto 阅读(579) 评论(0) 推荐(0) 编辑
摘要: https://p3c.alibaba.com/plugin/eclipse/update/JRebel MyBatipse SonarLint Enhanced Class Decmpiler IndentGuide Spring Tools MyBatis Generator Darkest D 阅读全文
posted @ 2019-04-22 17:10 root-crypto 阅读(349) 评论(0) 推荐(0) 编辑