06 2021 档案

摘要:chmod a+x /usr/local/maven/apache-maven-3.8.1/bin/mvn 阅读全文
posted @ 2021-06-30 17:07 云村的王子 阅读(805) 评论(0) 推荐(0) 编辑
摘要:前提:docker容器中的nginx要开启 阅读全文
posted @ 2021-06-30 14:36 云村的王子 阅读(223) 评论(0) 推荐(0) 编辑
摘要:见下文 https://www.cnblogs.com/codecat/p/10873757.html 阅读全文
posted @ 2021-06-29 09:11 云村的王子 阅读(37) 评论(0) 推荐(0) 编辑
摘要:netstat -ano | findstr 端口号 (查询端口号被哪个进程占用) tasklist | findstr 进程PID (根据PID找到进程名称) taskkill -PID 进程PID -F (根据PID杀掉进程) 阅读全文
posted @ 2021-06-29 09:09 云村的王子 阅读(100) 评论(0) 推荐(0) 编辑
摘要:/** * 校验时间 * * @param text * @return */ public static boolean checkTime(String text) { DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd"); try 阅读全文
posted @ 2021-06-17 16:41 云村的王子 阅读(390) 评论(0) 推荐(0) 编辑
摘要:兄弟们,代码直接用。 这里提供了三个接口,分别是 1、读取指定文件夹图片生成PDF 2、读取指定文件夹图片生成PDF并下载 3、将前台传过来的文件图片转换为PDF下载 import com.lowagie.text.Document; import com.lowagie.text.Document 阅读全文
posted @ 2021-06-17 10:40 云村的王子 阅读(467) 评论(0) 推荐(0) 编辑
摘要:1、批量插入 ServiceImpl层 List<Person> addPeople = new ArrayList<>(); //addPeople存放多个Person对象 personMapper.insetPeopleReturnIds(addPeople); Dao层接口(这里的注解para 阅读全文
posted @ 2021-06-17 10:11 云村的王子 阅读(1301) 评论(0) 推荐(0) 编辑
摘要:同样最近在开发swt的一个项目,业务中的一个功能模块类似百度网盘的上传进度条 0/80。 即已上传0个,总共80个。效果展示要的就是实时刷新,2/80呀,15/80呀,针对这个,就有了这篇文章。 下面附上【Label实时刷新时间】参考代码和原文链接,我是看这段代码加上这篇文章有的灵感。 public 阅读全文
posted @ 2021-06-11 14:49 云村的王子 阅读(267) 评论(0) 推荐(0) 编辑
摘要:代码如下: public class test01 { private static int DPI = 300; public static void main(String[] args) { String path = "E:\\002.jpg"; File file = new File(p 阅读全文
posted @ 2021-06-10 14:49 云村的王子 阅读(1180) 评论(0) 推荐(0) 编辑
摘要:代码如下: public static void main(String[] args) { try { BufferedImage bufferegImage = ImageIO.read(new File("C:\\YD\\2021-06-01\\temp\\094.tif")); ImageI 阅读全文
posted @ 2021-06-10 10:08 云村的王子 阅读(1002) 评论(0) 推荐(0) 编辑
摘要:在正常的map操作中,key是不能重复的,如果希望key的内容可以重复,可以用IdentityHashMap 举个栗子 输出结果: public static void main(String[] args) { Map<String,String> map = new HashMap<>(); m 阅读全文
posted @ 2021-06-09 16:47 云村的王子 阅读(1703) 评论(0) 推荐(0) 编辑
摘要:java8-stream 使用之前,实体类要重写equals和hashCode才会生效。 public static void main(String[] args) { List<Person> list1 = new ArrayList<>(); List<Person> list2 = new 阅读全文
posted @ 2021-06-03 17:44 云村的王子 阅读(114) 评论(0) 推荐(0) 编辑
摘要:将下面三层结合起来,请放心食用。 一、controller层 @RestController public class EasyExcelController { private Logger logger = LogManager.getLogger(EasyExcelController.cla 阅读全文
posted @ 2021-06-03 14:51 云村的王子 阅读(25) 评论(0) 推荐(0) 编辑
摘要:将下面三层结合起来,请放心食用。 一、controller层 @RestController public class EasyExcelController { private Logger logger = LogManager.getLogger(EasyExcelController.cla 阅读全文
posted @ 2021-06-03 14:51 云村的王子 阅读(184) 评论(0) 推荐(0) 编辑
摘要:public static void main(String[] args) { String filePath = "E:/" + "1.txt"; String content = "这是txt文件"; FileWriter fw = null; try { File file = new Fi 阅读全文
posted @ 2021-06-03 11:27 云村的王子 阅读(5278) 评论(0) 推荐(0) 编辑
摘要:public CommonResp download() { FileOutputStream fos = null; BufferedInputStream bis = null; HttpURLConnection httpUrl = null; int size = 0; byte[] buf 阅读全文
posted @ 2021-06-03 11:20 云村的王子 阅读(136) 评论(0) 推荐(0) 编辑
摘要:在看完执行了网上各种文章之后,我发现没有一个适合我的。 最终,终于,在朋友的远程帮助下解决了。 如果你还有这个问题的话,可以试一下这个: 右键项目,打开终端,执行下面这个命令(手动指定一下maven install的编码 idea可能默认用gbk了) mvn clean install -Dfile 阅读全文
posted @ 2021-06-03 10:45 云村的王子 阅读(302) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示