摘要: reorg table <表> 有些在客户端无法使用reorg,需要切换到db2命令行,这就有点尴尬了。。。 可以使用以下命令: call SYSPROC.ADMIN_CMD('reorg table 表空间.表')实际上reorg就是调用的SYSPROC.ADMIN_CMD 阅读全文
posted @ 2021-08-05 15:00 wlv1314 阅读(1558) 评论(0) 推荐(0) 编辑
摘要: 问题: 在js中使用map的时候,出现了异常:Uncaught TypeError: map.get is not a function,突然感觉后背发凉! 解决: 经过一番查找,原来是声明map方式的原因,在js中有两种创建map的方式。 方式一: var map1=new Map(); //插入 阅读全文
posted @ 2021-06-16 15:38 wlv1314 阅读(12274) 评论(4) 推荐(0) 编辑
摘要: SpringBoot整合MongoDB4.0多数据源实现事务 阅读全文
posted @ 2021-04-13 15:49 wlv1314 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 转自: MongoDB单机版安装 MongoDB副本集搭建 描述的很详细,非常不错! 阅读全文
posted @ 2021-02-08 17:31 wlv1314 阅读(254) 评论(0) 推荐(1) 编辑
摘要: MongoDB与spring集成,操作mongo非常方便 主要有两种方式: 一、使用MongoTemplate 二、使用Spring Data Mongodb的MongoRepository 两者的区别就是第一种得自己写CURD语句,第二种非常方便基本不用自己写CURD语句 我之前一直使用的都是Mo 阅读全文
posted @ 2021-02-03 14:38 wlv1314 阅读(2612) 评论(0) 推荐(1) 编辑
摘要: 想找一些图片做桌面背景,但是又不想一张张去下载,后来就想到了爬虫。。。 对于爬虫我也没具体用过,在网上一顿搜索后写了个小demo。 爬虫的具体思路就是: 1.调用url爬取网页信息 2.解析网页信息 3.保存数据 刚开始还用正则去匹配,获取img标签中的src地址,但是发现有很多不便(主要我正则不太 阅读全文
posted @ 2021-01-15 17:29 wlv1314 阅读(179) 评论(1) 推荐(1) 编辑
摘要: import com.alibaba.fastjson.JSONObject; import lombok.extern.slf4j.Slf4j; import org.apache.commons.httpclient.HttpStatus; import org.apache.http.clie 阅读全文
posted @ 2020-11-26 17:18 wlv1314 阅读(495) 评论(0) 推荐(0) 编辑
摘要: 客户端发送文件: /** * 文件上传 * @param remote_url 请求地址 * @param file 请求文件 * @return 响应结果 */ public String httpClientUploadFile(String remote_url,File file) { Cl 阅读全文
posted @ 2020-09-03 18:06 wlv1314 阅读(1522) 评论(0) 推荐(0) 编辑
摘要: 问题: 最近在使用BeanUtils.copyProperties()进行拷贝的时候,出现了一个问题:拷贝完之后获取到的拷贝后的对象属性为空, 首先这两个对象的属性都是基本数据类型,而且属性名一致,为什么出现这种情况了呢? 后来发现了一个极其容易被忽视的内容:就是导包,导包,导包。 解决: 问题出在 阅读全文
posted @ 2020-08-11 16:06 wlv1314 阅读(7790) 评论(1) 推荐(1) 编辑
摘要: HTTP Status 406 - type Status report message description The resource identified by this request is only capable of generating responses with characte 阅读全文
posted @ 2020-07-30 13:38 wlv1314 阅读(882) 评论(0) 推荐(0) 编辑