
tool
palm down
这个作者很懒,什么都没留下…
展开
-
使用datagrip复制表到另外一个数据库
datagrip复制表到新库原创 2022-11-07 14:31:09 · 9015 阅读 · 0 评论 -
基于BeanUtils的实现对集合复制功能
/** * @author liouwb */public class BeanListUtils extends BeanUtils { /** * 转换对象 list * * @param sources 源对象list * @param targetSupplier 目标对象供应方 new * @param <S> 源对象类型 * @param <T>原创 2021-11-19 08:13:12 · 3524 阅读 · 0 评论 -
restTemplate模拟浏览器登录携带cookie请求接口
通过restTemplate模拟浏览器登录并携带cookie请求接口查看网页cookie通过网页调试,可以发现cookie在登录接口返回的response header里面知道cookie的返回方式和位置之后,我们就可以通过代码模拟浏览器登录并获取cookie通过restTemplate登录并获取cookie public void testLogin() { HttpHeaders headers = new HttpHeaders(); header原创 2022-01-12 14:15:25 · 8333 阅读 · 0 评论 -
springboot基于RequestBodyAdvice和ResponseBodyAdvice实现请求和返回加解密
RequestBodyAdvice我们看下RequestBodyAdvice的源码/** * Allows customizing the request before its body is read and converted into an * Object and also allows for processing of the resulting Object before it is * passed into a controller method as an {@code .原创 2021-10-25 10:01:52 · 864 阅读 · 0 评论 -
生成小程序二维码
java生成小程序二维码官方文档地址官方文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.get.htmlwxacode.get,生成二维码数量有限制wxacode.getUnlimited没有二维码数量没有限制,但是路径长度有限制步骤一,获取access_token /** * 获取微信 access_token * *原创 2021-10-23 10:52:04 · 1240 阅读 · 0 评论 -
mac安装homebrew
Homebrew是一款Mac OS平台下的软件包管理工具,拥有安装、卸载、更新、查看、搜索等很多实用的功能。简单的一条指令,就可以实现包管理,而不用你关心各种依赖和文件路径的情况,十分方便快捷。Homebrew安装安装方法一/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"或者/usr/bin/ruby -e "$(curl -fsSL https.原创 2020-09-12 11:06:36 · 115 阅读 · 0 评论