上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 使用Guava-Retrying,请求重试 public static Object callMethod(String url, String method, Object[] args, Class[] clzs){ Callable<Object> task = ()->{ System.ou 阅读全文
posted @ 2021-04-25 14:41 李德东 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 定时任务类 上加 @Component 注解定时任务方法上加 @Scheduled(cron = "0/20 * * * * ?") 注解但是定时任务不能调起 经过测试还需要在spring boot 启动类上加 @EnableScheduling 注解才启动成功 阅读全文
posted @ 2021-04-22 11:19 李德东 阅读(712) 评论(0) 推荐(0) 编辑
摘要: 实现导出功能时,需要整合查询条件,需要将查询的列表复制一份,生成一个新的表单,默认action提交信息,代码如下: function exportData() { try { var exportForm = $("#searchForm").clone(true).attr("id", "expo 阅读全文
posted @ 2021-04-01 17:27 李德东 阅读(394) 评论(0) 推荐(1) 编辑
摘要: mysql查询所有表空间大小 select table_name,table_rows,data_length+index_length,concat(round((data_length+index_length)/1024/1024/1024,2),'GB') data from informa 阅读全文
posted @ 2021-01-28 09:33 李德东 阅读(852) 评论(0) 推荐(0) 编辑
摘要: mysqldump --skip-opt -h11.221.8.333 -P3306 -uroot -p`root` --databases workdatabase--ignore-table=workdatabase.comity_bak1019 > /app/comdatabak.sql; 使 阅读全文
posted @ 2021-01-27 15:42 李德东 阅读(3003) 评论(0) 推荐(0) 编辑
摘要: 1、查询字符串命令: cat fileName|grep ‘要查找的字符串’实例:cat catalina.out|grep ‘2018041417434200258001’ 2.查询文件特定字符串前后文本信息获取异常日志的前10行和后50行,-i表示忽略大小写。grep -A 10 -B 50 - 阅读全文
posted @ 2020-11-03 17:04 李德东 阅读(5044) 评论(0) 推荐(0) 编辑
摘要: localStorage和sessionStorage一样都是用来存储客户端临时信息的对象。 他们均只能存储字符串类型的对象(虽然规范中可以存储其他原生类型的对象,但是目前为止没有浏览器对其进行实现)。 localStorage生命周期是永久,这意味着除非用户显示在浏览器提供的UI上清除localS 阅读全文
posted @ 2020-10-29 17:53 李德东 阅读(1219) 评论(0) 推荐(0) 编辑
摘要: 因工作需求,想让base64编码的字段全部解码存储,没想到mysql支持该函数 1、to_base64 编码 如: select to_base64('12345'); 2、from_base64 解码 如:select from_base64('MTIzNDU='); select abi.* f 阅读全文
posted @ 2020-10-19 14:53 李德东 阅读(3992) 评论(1) 推荐(0) 编辑
摘要: $("#requirement").select2("val", ["xxx"]); $("#requirement").val(["xxx"]).trigger("change"); 两种方式 阅读全文
posted @ 2020-05-12 22:41 李德东 阅读(2642) 评论(0) 推荐(0) 编辑
摘要: rt,在查询时候需要查出字段为空或者为某个特定值的数据,但是又不想使用or去组合。使用函数IFNULL, IFNULL(ca.is_on_sale,'1') IFNULL() 函数用于判断第一个表达式是否为 NULL,如果为 NULL 则返回第二个参数的值,如果不为 NULL 则返回第一个参数的值。 阅读全文
posted @ 2020-05-09 14:04 李德东 阅读(8191) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页