- 博客(8)
- 收藏
- 关注
原创 网页变灰实现
html{-webkit-filter: grayscale(100%);-moz-filter: grayscale(100%);-ms-filter: grayscale(100%);-o-filter: grayscale(100%);filter: grayscale(100%);filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);}
2022-12-05 10:42:12
69
1
原创 word转pdf
需要的jar包 jacob.jar并根据操作系统在 jdk的bin目录下加入对应jacob-1.18-x64.dll代码如下ActiveXComponent app = null; String wordFile = "D:/exportWord/"+date+name+idNumber+".docx"; File dir = new File("D:/申领确认单签字记录"); if (!dir.exists()) {// 判断目录是否存在 dir.
2021-12-16 16:25:25
98
转载 java给图片加水印
import java.awt.AlphaComposite;import java.awt.Color;import java.awt.Font;import java.awt.Graphics2D;import java.awt.Image;import java.awt.RenderingHints;import java.awt.image.BufferedImage;import java.io.File;import java.io.FileOutputStream;impor
2021-11-24 17:29:28
82
原创 java实现图片去掉水印
代码import javax.imageio.ImageIO;import javax.imageio.ImageWriter;import javax.imageio.stream.ImageOutputStream;import javax.net.ssl.HttpsURLConnection;import java.awt.*;import java.awt.image.BufferedImage;import java.io.File;import java.io.FileFilt
2021-11-24 16:52:44
3840
原创 java图片去掉水印
java图片去掉水印代码import javax.imageio.ImageIO;import javax.imageio.ImageWriter;import javax.imageio.stream.ImageOutputStream;import javax.net.ssl.HttpsURLConnection;import java.awt.*;import java.awt.image.BufferedImage;import java.io.File;import java.
2021-11-24 16:50:22
451
原创 java导出word文档
导出word文档导入的jar<dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>3.17</version></dependency><dependency> <groupId>org.apache.poi</gro
2021-11-24 16:17:58
471
原创 List转JSONArray和JSONArray转List
1.List转JSONArrayList list = new ArrayList();JSONArray array= JSONArray.parseArray(JSON.toJSONString(list));2.JSONArray转ListJSONArray array = new JSONArray();List list = JSONObject.parseArray(array.toJSONString(), EventColAttr.class);3.String转JSONArra
2021-02-04 16:23:04
217
原创 Excel的导入和导出
Excel的导入和导出excel的导入fileName创建文件的名字需要为excel格式public static void getExcel(HttpServletResponse response, List<List> data, String fileName) {ExcelWriter writer = ExcelUtil.getWriter(true);writer.write(data);response.reset();response.setContentType
2020-10-15 15:25:57
219
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人