2020年3月3日
摘要:
要先安装nodejs和svgo 安装好nodejs后在cmd里面输入npm i svgo -g(liunx下直接输入) import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReade
阅读全文
posted @ 2020-03-03 10:17
james-roger
阅读(649)
推荐(0)
2020年1月8日
摘要:
在条用其他服务的接口时有可能会失败,可以采用重拾机制 springboot 整合retry(重试机制)
阅读全文
posted @ 2020-01-08 14:03
james-roger
阅读(512)
推荐(0)
2019年12月23日
摘要:
public static void main(String[] args) { File file = new File("C:\\Users\\Administrator\\Desktop\\aa\\sdcbz.slpk");//当前压缩文件 ZipInputStream zin;//创建ZipInputStream对象 try { ...
阅读全文
posted @ 2019-12-23 14:20
james-roger
阅读(592)
推荐(0)
2019年12月4日
posted @ 2019-12-04 09:27
james-roger
阅读(3)
推荐(0)
2019年11月13日
摘要:
commons.lang String value = StringEscapeUtils.escapeSql(searchRequest.getSearchValue());
阅读全文
posted @ 2019-11-13 09:11
james-roger
阅读(814)
推荐(0)
2019年11月11日
摘要:
post: @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") GET:
阅读全文
posted @ 2019-11-11 08:46
james-roger
阅读(1773)
推荐(0)
2019年11月4日
摘要:
listen 80; server_name image.demo.com; #charset koi8-r; #access_log logs/host.access.log main; location /file { alias C:/file; index index.html index.htm; autoindex on; }
阅读全文
posted @ 2019-11-04 15:14
james-roger
阅读(5454)
推荐(0)
2019年10月29日
摘要:
加入某个线程池中有多个线程: ThreadPool.addThread(t1); ThreadPool.addThread(t2); ... ThreadPool.addThread(tn); 现在想终止第m个线程做法思想如下: ①创建一个hashMap,将所创建的线程以及对应每个线程唯一标识放进去
阅读全文
posted @ 2019-10-29 20:01
james-roger
阅读(2170)
推荐(1)
2019年10月23日
摘要:
//下载资源 try { URL urlfile = null; HttpURLConnection httpUrl = null; BufferedInputStream bis = null; BufferedOutputStream bos = null; urlfile = new URL(downloadPath); httpUrl = (HttpURLConnection) urlfi
阅读全文
posted @ 2019-10-23 18:06
james-roger
阅读(208)
推荐(0)
摘要:
下载地址:https://dev.mysql.com/downloads/file/?id=476936 1、解压并创建文件 ftp上传到服务器 /user/local/目录下(目录可以自己定) 使用命令 ,对mysql进行解压缩 [root@localhost local]# tar -zxvf mysql-5.7.22-linux-glibc2.12-x86_64.tar 使用命令,对解压后的
阅读全文
posted @ 2019-10-23 09:51
james-roger
阅读(139)
推荐(0)