欢迎访问我的个人网站==》 jiashubing.cn
上一页 1 2 3 4 5 6 7 8 9 10 ··· 39 下一页
摘要: ScheduledExecutorService.schedule 方法 ScheduledExecutorService scheduledThreadPool = Executors.newScheduledThreadPool(5); scheduledThreadPool.schedule( 阅读全文
posted @ 2020-04-14 16:49 贾树丙 阅读(3193) 评论(0) 推荐(1) 编辑
摘要: <div id="ws" style="display:none; position: absolute; height: 100%; width: 100%; background: #333; opacity: 0.5;"></div> 阅读全文
posted @ 2020-03-24 19:00 贾树丙 阅读(1548) 评论(0) 推荐(0) 编辑
摘要: <div style="width:300px; position:absolute; top: 0; right: 0; left: 0; bottom: 0; margin: auto; background: #fff; border: 1px solid #ccc; border-radiu 阅读全文
posted @ 2020-03-24 18:54 贾树丙 阅读(2418) 评论(0) 推荐(0) 编辑
摘要: 上传到本地服务器下,不需要修改配置文件 在本地开发测试模式时,得到的地址为: {项目跟目录}/target/static/images/upload/ 在打包成jar发布到服务器上时,得到的地址为: {发布jar包目录}/static/images/upload/ package cn.jiashu 阅读全文
posted @ 2020-03-19 16:43 贾树丙 阅读(13528) 评论(1) 推荐(1) 编辑
摘要: import java.io.File; import java.util.ArrayList; import java.util.List; public class Test3 { private static List<String> dirList = new ArrayList<>(); 阅读全文
posted @ 2020-03-19 16:39 贾树丙 阅读(358) 评论(0) 推荐(0) 编辑
摘要: /** * 从request 中取出 cookie */ private String getUgcCookie(HttpServletRequest request) { String ugcInfo = null; try { Cookie[] cookies = request.getCook 阅读全文
posted @ 2020-03-19 15:56 贾树丙 阅读(2584) 评论(0) 推荐(0) 编辑
摘要: 阿里云的redis 备份后为 rdb 文件,那么如何使用本地redis 打开rdb 文件呢? windows上操作方法整理 方法一: windows 安装的 redis 目录下,有个dump.rdb 文件先把原来的备份,再把要打开的xxx.rdb文件命名成 dump.rdb然后运行 redis-se 阅读全文
posted @ 2020-03-19 15:54 贾树丙 阅读(10668) 评论(0) 推荐(0) 编辑
摘要: 1、首先crontab -e 编辑定时任务 2、按 【Ctrl + X】,如果没有改动会直接退出,否则会先跳到下一个界面(这一步也可以先使用【Ctrl + O】写入,再用【Ctrl + X】退出) 3、直接按 【Y】,再进入下一个界面,如下图:(我印象里以前不是这样子的啊,可能是老了,记错了) 4、 阅读全文
posted @ 2020-02-05 12:14 贾树丙 阅读(11404) 评论(0) 推荐(1) 编辑
摘要: df -h 查看到磁盘使用了100% 如何找到占用磁盘最大的目录 cd /du -h --max-depth=1 查看占用内存大小,最大的是lib目录 cd libdu -h --max-depth=1 一层一层往下看 数据库mysql占用最大文件有14G 断定这个目录没用,果断删除rm -rf 附 阅读全文
posted @ 2019-12-25 20:31 贾树丙 阅读(4654) 评论(0) 推荐(1) 编辑
摘要: 执行sonarLint 报错: Unable to create symbol table for ***File won't be refreshed because there were errors during analysis *** 恶心了我大半天,资料也搜不到,原来是版本的问题,IDE 阅读全文
posted @ 2019-12-18 18:11 贾树丙 阅读(1928) 评论(0) 推荐(0) 编辑
摘要: 这是我遇到过的最奇葩的错误 new URL的时候,使用静态变量就会报错org.xml.sax.SAXParseException: 前言中不允许有内容。 URL url = new URL(StringConstants.URL_BLOG); 但是写成 字符串就没问题了 URL url = new 阅读全文
posted @ 2019-10-26 13:34 贾树丙 阅读(968) 评论(0) 推荐(0) 编辑
摘要: 问题 IDEA 中的maven 项目,一个jar包一直导入不进来,reimport 无效。从另一仓库把这个jar包拷贝到当前仓库,还是无效。mvn clean install -e U 发现加载这个jar包时直接访问远程仓库,都没有从本地查找一下 解决办法 最终我也没找到问题的原因所在,但是手动in 阅读全文
posted @ 2019-09-26 16:24 贾树丙 阅读(13185) 评论(1) 推荐(2) 编辑
摘要: 别白费力气了,没有好办法 原因就是网络不稳定,公司里的局域网用的人多就会出现这个问题,等人们吃饭或者回家了,没人用了再连接VPN就好多了 阅读全文
posted @ 2019-08-15 12:05 贾树丙 阅读(10) 评论(0) 推荐(0) 编辑
摘要: xshell 不能导入 xsh 文件 导入功能 只能导入 *.xts, *.csv, *.tsv 文件,不能直接导入 .xsh 其实 xsh文件不需要导入,直接拷贝进去就可以了(.xsh 本来就是 xshell 的执行脚本) 如上图,在【会话】窗口【打开所在文件夹】,把xsh 文件拷贝进去 退出来, 阅读全文
posted @ 2019-08-15 11:47 贾树丙 阅读(4960) 评论(0) 推荐(0) 编辑
摘要: SpringMvc中,校验参数可以使用 @Valid 注解,同时在相应的对象里使用 @NotBlank( message = "昵称不能为空")@NotNull( message = "ID不能为空")@Pattern( message = "不能包括空格" , regexp = "\\S+") 等 阅读全文
posted @ 2019-08-06 19:39 贾树丙 阅读(6352) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 39 下一页