摘要: 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.apache.log4j.Logg... 阅读全文
posted @ 2019-03-05 16:32 RivenLw 阅读(1740) 评论(0) 推荐(0) 编辑
摘要: 解决思路,既然上一个libreoffice没关闭,导致8100端口被占用,那我们就去关闭它。 在OfficeManager.start();方法之前,使用Linux进程操作工具类,找到之前的libreoffice进程,然后杀掉进程。Linux进程操作工具类请看https://www.cnblogs. 阅读全文
posted @ 2019-03-05 16:27 RivenLw 阅读(2213) 评论(0) 推荐(0) 编辑
摘要: package com.talkweb.utils;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import org.apache.log4j.Logger;imp 阅读全文
posted @ 2019-03-05 16:13 RivenLw 阅读(1476) 评论(0) 推荐(0) 编辑
摘要: 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.FileOutputStream;... 阅读全文
posted @ 2019-03-05 16:12 RivenLw 阅读(3737) 评论(0) 推荐(0) 编辑
摘要: 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 java.net.URLCon... 阅读全文
posted @ 2019-03-05 16:09 RivenLw 阅读(4494) 评论(0) 推荐(0) 编辑
摘要: import org.springframework.beans.BeansException; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; import org.springframework.stereo... 阅读全文
posted @ 2019-03-05 16:06 RivenLw 阅读(182) 评论(0) 推荐(0) 编辑