自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(25)
  • 收藏
  • 关注

转载 Codewars题记 :Find the missing letter

1、题目:#Find the missing letterWrite a method that takes an array of consecutive (increasing) letters as input and that returns the missing letter in the array.You will always get an valid ar...

2019-08-01 20:01:00 318

转载 Codewars题记 :Take a Ten Minute Walk

1、题目:You live in the city of Cartesia where all roads are laid out in a perfect grid. You arrived ten minutes too early to an appointment, so you decided to take the opportunity to go for a sho...

2019-07-31 19:56:00 518

转载 Codewars题记 :Some numbers have funny properties.

1、题目:Some numbers have funny properties. For example:89 --> 8¹ + 9² = 89 * 1695 --> 6² + 9³ + 5⁴= 1390 = 695 * 246288 --> 4³ + 6⁴+ 2⁵ + 8⁶ + 8⁷ = 2360688 = 46288 * 51Given a po...

2019-07-30 20:00:00 331

转载 Codewars题记 :Count the number of Duplicates

1、题目:Count the number of DuplicatesWrite a function that will return the count of distinct case-insensitive alphabetic characters and numeric digits that occur more than once in the input strin...

2019-07-28 20:11:00 244

转载 Java图片合成工具类

import java.awt.Color;import java.awt.Graphics2D;import java.awt.image.BufferedImage;import java.io.File;import java.io.IOException;import javax.imageio.ImageIO;import org.ap...

2019-03-05 16:32:00 542

转载 解决Libreoffice在Linux服务器上,重启Tomcat但是Libreoffice8100端口还一直占用的问题...

解决思路,既然上一个libreoffice没关闭,导致8100端口被占用,那我们就去关闭它。在OfficeManager.start();方法之前,使用Linux进程操作工具类,找到之前的libreoffice进程,然后杀掉进程。Linux进程操作工具类请看https://www.cnblogs.com/RivenLw/p/10477488.html/** ...

2019-03-05 16:27:00 1316

转载 Java对Linux进程关闭

import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import org.apache.log4j.Logger;import com.talkweb.thread.SignatureSynthesisThread;/*...

2019-03-05 16:13:00 113

转载 Java多张图片合成PDF

import com.itextpdf.text.Document;import com.itextpdf.text.Image;import com.itextpdf.text.Rectangle;import com.itextpdf.text.pdf.PdfWriter;import java.io.File;import java.io.File...

2019-03-05 16:12:00 436

转载 java下载文件到本地磁盘

import java.io.BufferedInputStream;import java.io.File;import java.io.FileOutputStream;import java.io.OutputStream;import java.net.HttpURLConnection;import java.net.URL;import ja...

2019-03-05 16:09:00 427

转载 获取Spring容器中的Bean

import org.springframework.beans.BeansException;import org.springframework.context.ApplicationContext;import org.springframework.context.ApplicationContextAware;import org.springframew...

2019-03-05 16:06:00 91

转载 SpringMVC用户请求下载文件

import java.io.File;import java.io.FileInputStream;import java.io.InputStream;import javax.servlet.ServletContext;import javax.servlet.http.HttpServletRequest;import org.apache...

2019-01-31 14:40:00 73

转载 (转)PDF转图片工具类

import org.apache.commons.lang3.StringUtils;import org.icepdf.core.pobjects.Document;import org.icepdf.core.pobjects.Page;import org.icepdf.core.util.GraphicsRenderingHints;import or...

2019-01-23 15:46:00 85

转载 使用Libreoffice处理office文档,OFFICE转PDF,OFFICE转图片,OFFICE转图片包含加水印逻辑...

主要逻辑为office转pdfoffice转图片实际上是先转为pdf再利用另外一个工具类转为图片转图片工具类请看另一篇文章import org.apache.commons.lang3.StringUtils;import org.artofsolving.jodconverter.OfficeDocumentConverter;import org.artofs...

2019-01-23 15:40:00 1046

转载 PDF文档设置水印工具类

import java.io.BufferedOutputStream;import java.io.File;import java.io.FileOutputStream;import java.util.ArrayList;import org.apache.log4j.Logger;import com.itextpdf.text.Element;...

2019-01-23 15:34:00 134

转载 Map转为Bean,注册String转Date

import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Map;import org.apache.commons.beanutils.ConversionException;import org.apache.commons.beanutils.Conv...

2019-01-03 17:14:00 194

转载 把map的key转换成驼峰命名

package com.talkweb.utils;import java.util.HashMap;import java.util.Iterator;import java.util.Map;import java.util.Map.Entry;public class CommTool { /** * 把map的key转换成...

2019-01-03 17:12:00 591

转载 使用筛法打印质数

public static void main(String[] args) { //范围:2到多少 int maxfanwei = 20; boolean[] bolist = new boolean[maxfanwei+1]; for (int i ...

2018-11-23 17:47:00 77

转载 (转)POI中设置Excel单元格格式样式(居中,字体,边框,背景色、列宽、合并单元格等)...

HSSFSheet sheet = workbook.createSheet("sheet1");//新建sheet页HSSFCellStyle cellStyle = wb.createCellStyle(); //新建单元格样式一、设置背景色:cellStyle.setFillForegroundColor((short) 13);// 设置背景色 c...

2018-10-11 10:51:00 140

转载 easyui弹出加载遮罩层(转)

//弹出加载层function load() { $("<div class=\"datagrid-mask\"></div>").css({ display: "block", width: "100%", height: $(window).height() }).appendTo("body"); $("<div c...

2018-09-27 14:41:00 108

转载 JS刷新窗口,关闭窗口

一、刷新窗口  document.location.href=document.location.href;二、关闭窗口1、 不带任何提示关闭窗口<a href="javascript:window.opener=null;window.open('','_self');window.close();">关闭</a>2、自定...

2018-08-31 10:05:00 97

转载 (转)linux下的find文件查找命令与grep文件内容查找命令

在使用linux时,经常需要进行文件查找。其中查找的命令主要有find和grep。两个命令是有区的。  区别:(1)find命令是根据文件的属性进行查找,如文件名,文件大小,所有者,所属组,是否为空,访问时间,修改时间等。 (2)grep是根据文件的内容进行查找,会对文件的每一行按照给定的模式(patter)进行匹配查找。  一.find命令...

2018-08-28 10:21:00 81

转载 判断Iframe是否加载完毕

var oFrm = document.getElementById('Iframe4');oFrm.onload = oFrm.onreadystatechange = function () { if (this.readyState && this.readyState != 'complete') { //alert("加载中。...

2018-08-23 17:15:00 110

转载 Oracle触发器(转)

转自:https://blog.csdn.net/shmilychan/article/details/53787933一、触发器简介触发器的定义就是说某个条件成立的时候,触发器里面所定义的语句就会被自动的执行。因此触发器不需要人为的去调用,也不能调用。然后,触发器的触发条件其实在你定义的时候就已经设定好了。这里面需要说明一下,触发器可以分为语句级触发器和行级触发器。详细的介绍可...

2018-08-13 11:25:00 287

转载 JQuery身份证校验

/************************************************************************** 身份号码排列顺序从左至右依次为:六位数字地址码,八位数字出生日期码,三位数字顺序码和一位数字校验码。 地址码表示编码对象常住户口所在县(市、旗、区)的行政区划代码。 出生日期码表示编码对象出生的年、...

2018-08-13 11:14:00 101

转载 Java对字符串md5加密

---恢复内容开始---/** * 对字符串md5加密 * * @param str * @return * @throws Exception */ public String getMD5Str(String str) throws Exception { try { ...

2018-08-13 11:12:00 118

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除