上一页 1 2 3 4 5 6 7 8 9 10 ··· 20 下一页
摘要: 一、没有引入Shema约束的XML文档 <?xml version="1.0" encoding="UTF-8"?> <书架> <书> <书名>JavaWeb开发大全</书名> <作者>班长</作者> <售价>99.8</售价> <简介>不错</简介> </书> <书> <书名>葵花宝典</书名> 阅读全文
posted @ 2022-08-15 18:00 xiexie0812 阅读(143) 评论(0) 推荐(0)
摘要: 问题描述: 个简单的查询逻辑即查询前先从redis取,取到后则进行反序列化。 String resJson = redisService.getString(name); if (StringUtil.isNotEmpty(resJson)) { // 反序列化 return (ResultVo)J 阅读全文
posted @ 2022-08-15 11:54 xiexie0812 阅读(2513) 评论(0) 推荐(0)
摘要: 直接看代码 /** * 生成航线kml文件 * * @param airlineManage 航线信息 * @return String 临时存储文件名 */ public AirlineManage setTravelsKml(AirlineManage airlineManage) throws 阅读全文
posted @ 2022-08-15 11:33 xiexie0812 阅读(1593) 评论(0) 推荐(0)
摘要: 以下参数和方法都是测试用,仅供运行程序参考 主要是为了小型场景,进行多线程批量处理 package com.xie.minio; import com.google.common.collect.Lists; import org.slf4j.Logger; import org.slf4j.Log 阅读全文
posted @ 2022-07-21 15:18 xiexie0812 阅读(130) 评论(0) 推荐(0)
摘要: 1. 使用isTerminated方法判断 当调用ExecutorService.shutdown方法的时候,线程池不再接收任何新任务,但此时线程池并不会立刻退出,直到添加到线程池中的任务都已经处理完成,才会退出。 在调用shutdown方法后我们可以在一个死循环里面用isTerminated方法判 阅读全文
posted @ 2022-07-21 10:40 xiexie0812 阅读(1881) 评论(0) 推荐(0)
摘要: package com.xie.test; import org.apache.commons.io.FileUtils; import java.io.*; import java.net.URL; import java.nio.channels.Channels; import java.ni 阅读全文
posted @ 2022-07-21 10:17 xiexie0812 阅读(1175) 评论(0) 推荐(0)
摘要: 问题描述: 上传文件时,springboot后端进行了多线程处理MultipartFile,报错系统找不到指定的文件或者文件为空 原因分析: 首先前端传递过来的文件,会存储到临时文件夹中,即类似这样的一个路径。C:\Users\DELL\AppData\Local\Temp\tomcat.8180. 阅读全文
posted @ 2022-07-21 09:43 xiexie0812 阅读(538) 评论(0) 推荐(0)
摘要: 解压安装jdk压缩包 wget http://xxxx/java/jdk-8u261-linux-x64.tar.gz tar -zxvf jdk-8u261-linux-x64.tar.gz 安装java 环境变量 vim /etc/profile set java environment JAV 阅读全文
posted @ 2022-07-19 14:25 xiexie0812 阅读(126) 评论(0) 推荐(0)
摘要: Maven Repository maven仓库:https://mvnrepository.com/ Central Repository maven仓库:https://repo.maven.apache.org/maven2/ 网易开源镜像站:https://mirrors.163.com/ 阅读全文
posted @ 2022-07-18 14:02 xiexie0812 阅读(58) 评论(0) 推荐(0)
摘要: 出处:https://itwxe.com/posts/3d9856.html 阅读全文
posted @ 2022-07-18 13:57 xiexie0812 阅读(51) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 20 下一页