会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
高富贵
新随笔
管理
2023年4月18日
docker-compose 安装
摘要: 1、安装 pip : # yum -y install epel-release # yum -y install python-pip # pip install --upgrade pip 2、安装Docker-Compose: # pip install docker-compose 3、查看
阅读全文
posted @ 2023-04-18 14:18 高富贵
阅读(259)
评论(0)
推荐(0)
2022年4月2日
mysql存储过程循环游标
摘要: 每次都忘记存储过程循环咋写,直接做个备份 CREATE DEFINER=`ycl`@`%` PROCEDURE `insertSecurityLevel`() BEGIN DECLARE isFlag INT DEFAULT TRUE; DECLARE companyId varchar(40);
阅读全文
posted @ 2022-04-02 14:44 高富贵
阅读(1427)
评论(0)
推荐(0)
2022年2月18日
POI根据模板生成新的Excel文件
摘要: 之前写过一篇根据模板生成新的word文件的文章,生成excel文件也是一样的原理,也记录一下吧。 excel 工具类: import org.apache.poi.hssf.usermodel.HSSFCell; import org.apache.poi.hssf.usermodel.HSSFRo
阅读全文
posted @ 2022-02-18 13:24 高富贵
阅读(671)
评论(0)
推荐(0)
从阿里云下载图片到本地
摘要: @GetMapping(value = "exportImage") public void exportImage(){ try { URL url = new URL("http://jianxin-picture.oss-cn-hangzhou.aliyuncs.com/image-file-
阅读全文
posted @ 2022-02-18 13:17 高富贵
阅读(162)
评论(0)
推荐(0)
2022年2月15日
POI根据word模块生成新的word
摘要: 工具类 package com.otoc.quality.spc.util;import org.apache.poi.ooxml.POIXMLDocument; import org.apache.poi.xwpf.usermodel.*; import java.io.File; import
阅读全文
posted @ 2022-02-15 13:33 高富贵
阅读(626)
评论(0)
推荐(0)
2022年2月14日
Mybatis Generator 代码生成器
摘要: Mybatis Generator 是 MyBatis 官方提供的一个代码生成工具, 使用方法比较简单,这里介绍一种简单粗暴的方法。 1.在resources文件夹下新建mybatis-generator文件夹,文件夹内容为所需的jar包和配置文件: 2.下面附上配置文件详情: mybatis-ge
阅读全文
posted @ 2022-02-14 14:26 高富贵
阅读(498)
评论(0)
推荐(0)
2022年1月13日
关于hutool工具导入
摘要: 发现hutool导入很是好用啊,做个备份。 POI文件:(jdk8对应版本5 而jdk7对应版本4) <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.4.2</versi
阅读全文
posted @ 2022-01-13 11:26 高富贵
阅读(1179)
评论(0)
推荐(0)
关于POI工具类绘制水印,箭头等功能
摘要: 绘制水印: /** * 绘制水印图片 * @param text * @param width * @param height * @return */ public static BufferedImage createWatermarkImage(String text, Integer wid
阅读全文
posted @ 2022-01-13 11:10 高富贵
阅读(734)
评论(0)
推荐(0)
2022年1月11日
JAVA代码实现SPC中八大判异标准逻辑
摘要: 网上找了很久SPC八大判异标准的代码实现,没找到JAVA的,自己写了一套,做个备忘。最终输出异常数据的坐标集,判异标准K值可编辑。效果如下: /** * Xbar判异标准 * Created by GaoYuman on 2021/12/29 15:57 */ public class XbarAb
阅读全文
posted @ 2022-01-11 15:13 高富贵
阅读(2526)
评论(11)
推荐(1)
关于java.util.LinkedHashMap cannot be cast to xxx的解决方法
摘要: 解决方法: List<UserVO> licenses = new Gson().fromJson(new Gson().toJson(result), new TypeToken<List<UserVO>>(){}.getType()); 也就是对报错的地方,再一次进行new Gson().toJ
阅读全文
posted @ 2022-01-11 15:01 高富贵
阅读(1187)
评论(0)
推荐(0)