摘要: String filename = java.net.URLEncoder.encode(file.getName(), "UTF-8"); response.setHeader("Content-Disposition", "attachment;filename*=utf-8'zh_cn'" + filename); 阅读全文
posted @ 2019-06-13 13:49 林深时见鹿! 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 终端执行命令 恢复 阅读全文
posted @ 2019-05-28 17:33 林深时见鹿! 阅读(507) 评论(0) 推荐(0) 编辑
摘要: git revert HEAD git push origin master 阅读全文
posted @ 2019-03-29 19:05 林深时见鹿! 阅读(243) 评论(0) 推荐(0) 编辑
摘要: git remote add upstream url 阅读全文
posted @ 2019-03-28 10:42 林深时见鹿! 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 听到测试与开发争论,为何枚举不能用public,用public怎么了?对于这个我也不知道到底能不能用,于是就去查了查资料。 解答: 阅读全文
posted @ 2019-03-18 17:17 林深时见鹿! 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 之前部署Jenkins没有遇到过这个问题,百度也找不到相关内容,无奈用过google翻译了一下,显示内存不足,上到服务器查询df -h 发现use% 100% 由于日志等文件导致服务器磁盘空间满了,引发此问题。 阅读全文
posted @ 2019-03-13 11:24 林深时见鹿! 阅读(1387) 评论(0) 推荐(0) 编辑
摘要: idea出现这个是因为词库中没有这个单词,所以提示拼写错误 解决办法:双击下面有虚线的单词——>鼠标右键——>spelling——>save 'xxx' to distionary 阅读全文
posted @ 2019-03-05 16:32 林深时见鹿! 阅读(6618) 评论(2) 推荐(1) 编辑
摘要: 这几天发现自己Intellij IDEA ctrl+alt+L格式化代码无效 设置里面按照快捷键搜索 按了 ctrl+alt+L 也没反应 但是我设置的确实是默认的 ctrl+alt+L 最后终于找到了问题所在 原来是开网易云音乐的锅 网易云会有一个全局的快捷键ctrl+alt+L跟idea冲突 去 阅读全文
posted @ 2019-01-05 10:53 林深时见鹿! 阅读(8285) 评论(7) 推荐(4) 编辑
摘要: BigDecimal bignum1 = new BigDecimal("10"); BigDecimal bignum2 = new BigDecimal("5"); BigDecimal bignum3 = null; //加法 bignum3 = bignum1.add(bignum2); System.out.println("和 是:" + big... 阅读全文
posted @ 2019-01-05 10:49 林深时见鹿! 阅读(298) 评论(0) 推荐(0) 编辑
摘要: /** * 使用递归的二分查找 *title:recursionBinarySearch *@param arr 有序数组 *@param key 待查找关键字 *@return 找到的位置 */ public static int recursionBinarySearch(int[] arr,int key,int low... 阅读全文
posted @ 2018-12-10 19:40 林深时见鹿! 阅读(140) 评论(0) 推荐(0) 编辑
博客已稳定运行: