会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
qwer78
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
18
下一页
2021年6月22日
mysql binlog恢复数据
摘要: mysql运行show master status; 命令 查看binlog文件 如 mysql-bin.000020 运行 命令 mysqlbinlog --no-defaults --database=数据库名称 --start-datetime="2020-01-01 00:00:00" --
阅读全文
posted @ 2021-06-22 10:01 qwer78
阅读(34)
评论(0)
推荐(0)
2021年5月11日
java poi 将公文套红 并 电子签章
摘要: 套红的方法 签章: import com.deepoove.poi.XWPFTemplate; import com.deepoove.poi.xwpf.NiceXWPFDocument; import lombok.extern.slf4j.Slf4j; import org.apache.poi
阅读全文
posted @ 2021-05-11 14:44 qwer78
阅读(864)
评论(0)
推荐(0)
2021年4月20日
springboot 打成jar包 docker部署服务器后 获取jar包中资源文件
摘要: 因为jar运行部署后无法获取内部文件路径,所以不能使用path InputStream resourceAsStream = new ClassPathResource("files/official_doc_model.docx").getInputStream();
阅读全文
posted @ 2021-04-20 09:34 qwer78
阅读(382)
评论(0)
推荐(0)
2021年4月13日
JAVA 操作 zip
摘要: zip4j源码地址 <dependency> <groupId>net.lingala.zip4j</groupId> <artifactId>zip4j</artifactId> <version>2.7.0</version> </dependency> import java.io.*; im
阅读全文
posted @ 2021-04-13 09:58 qwer78
阅读(225)
评论(0)
推荐(0)
2021年4月7日
Java springboot 串口 通信
摘要: 基于win10 环境 Virtual Serial Port Driver Pro 开通两个虚拟串口 打开串口调试助手 代码逻辑 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.
阅读全文
posted @ 2021-04-07 10:16 qwer78
阅读(908)
评论(0)
推荐(0)
2021年3月8日
mysql json数组对象,单独提取某一个对象并提取某一个属性数据
摘要: 如 字段 detail_data 值 类型: [{“name”: “技术活动名称”, “value”: “活动1”}, {“name”: “计划评审时间”, “value”: “2021-03-20”}, {“name”: “项目名称”, “value”: “修改编辑时的选人问题”}, {“name
阅读全文
posted @ 2021-03-08 19:17 qwer78
阅读(1520)
评论(0)
推荐(0)
2021年1月6日
方案二:通过poi-tl实现word文字插入,并把多个word合并(实现套红发文功能)
摘要: 1. 先创建红头模板 注意 {{num}} {{user}} 参数位置 2. 公文的文件地址 3. 方法 <dependency> <groupId>com.deepoove</groupId> <artifactId>poi-tl</artifactId> <version>1.9.1</vers
阅读全文
posted @ 2021-01-06 16:47 qwer78
阅读(1355)
评论(0)
推荐(0)
方案一:通过poi实现word文字插入,并把多个word合并(实现套红发文功能)
摘要: 1. 先创建红头模板 注意${num} ${user} 参数位置 2. 公文的文件地址 3. 方法 import org.apache.commons.io.IOUtils; import org.apache.poi.ooxml.POIXMLDocument; import org.apache.
阅读全文
posted @ 2021-01-06 16:40 qwer78
阅读(716)
评论(1)
推荐(2)
2020年12月10日
java8 获取指定日期零点和结束时间戳
摘要: /** * 获取指定日期 的 零点时间戳 * * @param date 日期。如 "2020-04-12" * @return 时间戳 毫秒 */ public static Long getStartOfToday(String date) { if (StringUtils.isEmpty(d
阅读全文
posted @ 2020-12-10 15:08 qwer78
阅读(1037)
评论(0)
推荐(0)
2020年11月26日
springboot使用内置h2 数据库,数据保存本地文件夹防止丢失
摘要: 依赖 <!-- jpa --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <!-- H2 -
阅读全文
posted @ 2020-11-26 18:12 qwer78
阅读(406)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
18
下一页
公告