摘要: 使用jsoup规范化html itext html转PDF 空格丢失问题解决 /** * 使用jsoup规范化html * * @param html html内容 * @return 规范化后的html */ private static String formatHtml(String html 阅读全文
posted @ 2022-06-22 16:25 无言灬亦知心 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 今天提交代码不小心 执行了git clean -fd 命令,发现文件全被删除了 一般git clean -fd 执行文件就直接被删除了; 本人系统:win10 恢复办法一:系统回收站恢复 恢复办法二:如果回收站没有的话,可以使用开发工具的代码修改历史来恢复 比如我使用的是:IntelliJ IDEA 阅读全文
posted @ 2021-09-18 20:16 无言灬亦知心 阅读(1512) 评论(0) 推荐(0) 编辑
摘要: Ext.Ajax.request({ url: your url, method: 'post', async : false,//同步请求数据 success: function(result, request) { //成功 }, failure: function(result, reques 阅读全文
posted @ 2021-09-16 14:58 无言灬亦知心 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 使用WebApplicationContextUtils直接获取你需要的bean例如场景:在拦截器需要使用查询用户信息的dao 代码如下: UserDao userDao = org.springframework.web.context.support.WebApplicationContextU 阅读全文
posted @ 2021-09-05 15:48 无言灬亦知心 阅读(234) 评论(0) 推荐(0) 编辑
摘要: store.reload({params:{start:0, limit:50}, callback:function() { /*成功后的代码执行*/ }}); 使用callback就可以取到store重新加载后的值 阅读全文
posted @ 2021-05-10 16:33 无言灬亦知心 阅读(154) 评论(0) 推荐(0) 编辑
摘要: Extjs 组件划入/划出效果 使用slideIn()方法 slideIn('b', { duration: 200 });//200mm内向下划出 slideIn('t', { duration: 200 });//200mm内向上划出 slideIn('r', { duration: 200 } 阅读全文
posted @ 2021-04-23 17:10 无言灬亦知心 阅读(84) 评论(0) 推荐(0) 编辑
摘要: public class BargainUtils { private static final int DEF_DIV_SCALE = 10; /** * 提供(相对)精确的除法运算。当发生除不尽的情况时,由scale参数指 定精度,以后的数字四舍五入。 * * @param v1 * 被除数 * 阅读全文
posted @ 2020-07-03 21:06 无言灬亦知心 阅读(436) 评论(0) 推荐(0) 编辑
摘要: linux下编译nginx-1.10.1报错:src/http/ngx_http_parse.c:1384:32: warning: this statement may fall through [-Wimplicit-fallthrough=] 原因:gcc编译版本问题导致。 解决办法: 解决办 阅读全文
posted @ 2020-06-30 18:02 无言灬亦知心 阅读(2178) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get update //更新系统 apt-get install unzip //安装unzip 阅读全文
posted @ 2020-06-23 17:41 无言灬亦知心 阅读(4207) 评论(0) 推荐(0) 编辑
摘要: map.entrySet().removeIf(entry -> entry.getValue() == null); 阅读全文
posted @ 2020-06-19 19:28 无言灬亦知心 阅读(6811) 评论(0) 推荐(1) 编辑