ITeye博客

咫尺天涯

liuzidong · 共 357 篇文章

Thumbnailator库(高质量缩略图)简单总结

参考链接: https://blog.csdn.net/lcj_star/article/details/76637931?utm_source=blogxgwz2 1、github: https://github.com/coobird/thumbnailator 2、pom.xml <dependency> <groupId>net.coobird</groupId> <artifactId>thumbnailator</artifactId> <version>0.4.8</version> </dependency> 3、按比例缩放图片 public static void scal…

2018-10-25 19:24 · 评论(0)

IntelliJ IDEA 控制台中文乱码解决方案

参考链接: https://blog.csdn.net/wo541075754/article/details/51150035 参考链接: http://www.cnblogs.com/vhua/p/idea_1.html?utm_source=tuicool&utm_medium=referral 相关设置 1、打开IDEA安装目录找到 idea.exe.vmoptions(64位为idea64.exe.vmoptions)文件, 在文件末尾加上 -Dfile.encoding=UTF-8 2、最后,在 IntelliJ IDEA 中的“Run/Debug Configurations”…

2018-08-27 13:22 · 评论(0)

【干货】程序员常访问的国外技术交流网站汇总

引用链接: http://www.ituring.com.cn/article/506753 技术人员经常会在各种技术交流社区游逛,大家互相学习、交流、分享、帮助。互联网拉近了地球人的距离,让全世界的技术人员可以聚集在一起分享交流。当然因为多方面原因,通常最新最权威的技术知识传到国内存在一定“时差”。本文将给大家分享技术人员经常访问的国外技术交流社区网站。 1.stackoverflow https://stackoverflow.com/ 众所周知,stackoverflow可以说是全球最为活跃的程序员技术问答交流社区。 2.Google+ https://plus.google.com/…

2018-07-30 21:37 · 评论(0)

Java – How to download a file from the Internet

参考链接: https://www.mkyong.com/java/java-how-to-download-a-file-from-the-internet/ 1、Apache Commons IO <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.5</version> </dependency> String fromFile = "ftp://ftp.arin.net/pub/stats/arin/delegated-arin-extended-lates…

2018-07-25 13:11 · 评论(0)

mysql utf8mb4

说明:MySQL的utf8编码只支持3字节的数据,utf8mb4编码是utf8编码的超集,兼容utf8,并且能存储4字节的表情字符。 采用utf8mb4编码的好处是:存储与获取数据的时候,不用再考虑表情字符的编码与解码问题。建议普通表使用utf8 如果这个表需要支持emoji就使用utf8mb4 新建mysql库或者表的时候还有一个排序规则 utf8_unicode_ci比较准确,utf8_general_ci速度比较快。通常情况下 utf8_general_ci的准确性就够我们用的了,在我看过很多程序源码后,发现它们大多数也用的是utf8_general_ci,所以新建数据 库时一般选用u…

2018-07-04 13:28 · 评论(0)

【转载】Eclipse Class Decompiler——Java反编译插件

参见:jd-eclipse 的安装和使用(最新版的) https://blog.csdn.net/u011242657/article/details/40324281 --------------------------------------------------------------------------------------- 最新实验:Eclipse Version: Oxygen.3a Release (4.7.3a) link安装失败(基本.zip) 1、 eclipse-class-decompiler-update_v2.10.0.zip 2、 org.sf.fee…

2018-06-24 11:09 · J2EE · 评论(0)

MyBatis批量新增和更新

网上参考了下总结:在连接SQL后面加上:&allowMultiQueries=true 才能实现批量更新 一、批量添加 1、XML <insert id="addBatchs" useGeneratedKeys="true" parameterType="java.util.List"> <selectKey resultType="long" keyProperty="id" order="AFTER"> SELECT LAST_INSERT_ID() AS ID </selectKey> INSERT INTO A (aa) VALUES <foreach collection="lis…

2018-04-12 17:49 · 评论(0)

eclipse通过tomcat热部署web项目

参考链接: https://blog.csdn.net/zhang854429783/article/details/50086923 步骤如下: 1、展开“Server Options”,勾选“Serve modules without publishing”选项 2、展开”publishing“,勾选”Automatically publish when resources change“选项 3、单击”Modules“选项卡,确保”Auto Reload“是被禁用的 4、以DEBUG模式启动tomcat,热部署在DEBUG模式下才可用 另外,支持热部署的有:jrebel,在 https…

2018-03-29 17:40 · 评论(0)

No tests found Matching Methed

环境说明:spring test + junit 4.12 运行测试用例报错 搜索结果: 1、更换junit版本为: 4.8 2、增加hamcrest-core1.3 org.hamcrest hamcrest-core 1.3 junit4.12 依赖 hamcrest1.3, 需要再导入 hamcrest-core 包 链接: http://repo2.maven.org/maven2/org/hamcrest/hamcrest-all/1.3/

2018-02-01 19:17 · Junit · 评论(0)

ECMAScript 6 入门

ECMAScript 6 入门 http://es6.ruanyifeng.com/

2017-11-01 15:46 · 评论(0)

快速关机

1、将C:\Windows\System32\SlideToShutDown.exe发送快捷方式到桌面 2、你可将它更改为一个关机的图标 3、体验一下吧 其它方法 将以下另存为以.cmd后缀的文件 shutdown -s -t 0

2017-07-07 09:06 · 评论(0)

Spring Task Schedule

链接: http://docs.spring.io/spring/docs/current/spring-framework-reference/html/scheduling.html 链接: http://gong1208.iteye.com/blog/1773177 链接: http://gong1208.iteye.com/blog/1773177 链接: http://zzy.cincout.cn/2016/09/30/spring-task-and-schedule-deep-research/ 链接: http://www.cnblogs.com/hongwz/p/564249…

2017-06-24 08:46 · Spring · 评论(0)

mac mvn install 中文乱码解决方法

参考链接 1、Maven打包后配置文件乱码的问题 http://blog.csdn.net/chinazgr/article/details/48176089 2、mac mvn install 中文乱码解决方法 http://blog.csdn.net/u013399759/article/details/40395769 总结为以下: 1、pom增加 <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <plugin> <groupId>org.apac…

2017-06-23 12:52 · 评论(0)

InvalidKeyException: Illegal key size & SecurityException: The jurisdiction poIn

参考链接: http://www.cnblogs.com/gdayq/p/5919252.html 报错1: java.security.InvalidKeyException: Illegal key size 报错2: java.lang.SecurityException: The jurisdiction policy files are not signed by a trusted signer! at javax.crypto.JarVerifier.verifyPolicySigned(JarVerifier.java:289) at javax.crypto.JceSecu…

2017-06-17 11:29 · 评论(0)

Activiti进阶—分配组任务

链接: http://blog.csdn.net/zjx86320/article/details/50412263 1、查询组任务 // 任务办理人 String candidateUser = "小A"; List<Task> list = processEngine.getTaskService()// .createTaskQuery()// .taskCandidateUser(candidateUser)// 参与者,组任务查询 .list(); if (list != null && list.size() > 0) { for (Task task : list) { Sys…

2017-06-11 19:10 · 评论(1)