摘要: 在Spring Cloud 的Feign组件中并不支持文件的传输,会出现这样的错误提示: feign.codec.EncodeException: class [Lorg.springframework.web.multipart.MultipartFile; is not a type suppo 阅读全文
posted @ 2020-06-22 16:03 陌路×难飞 阅读(1205) 评论(0) 推荐(0) 编辑
摘要: 1. maven helper安装 1.1 点击File目录下的setting 1.2 在应用市场搜索maven Helper 1.3 点击安装然后进行重启idea,完成安装。 2.打开pom文件, 底部可以看到多出一栏 Dependencies Analyzer 2.1 点击Dependencie 阅读全文
posted @ 2020-06-02 14:50 陌路×难飞 阅读(645) 评论(0) 推荐(0) 编辑
摘要: 1、在springboot的 Application上开启缓存注解 1 @SpringBootApplication 2 @EnableCaching //开启基于注解的缓存 3 public class DemoApplication { 4 5 public static void main(S 阅读全文
posted @ 2020-03-03 10:36 陌路×难飞 阅读(605) 评论(0) 推荐(0) 编辑
摘要: /** * 超简略导出Excel */ public static void exportExcel() throws Exception{ //导出的文件 OutputStream outputStream = new FileOutputStream(new File("1.xlsx")); // 声明一个... 阅读全文
posted @ 2019-11-01 14:46 陌路×难飞 阅读(161) 评论(0) 推荐(0) 编辑
摘要: public class MD5Utils { public static void main(String[] args) throws Exception{ File file = new File("D:\\msdia80.dll"); String md5 = MD5Utils.getMD5(new FileInputStream(file)); System.out.println(md 阅读全文
posted @ 2019-11-01 10:29 陌路×难飞 阅读(1046) 评论(0) 推荐(0) 编辑
摘要: 图片缩放 阿里云OSS的图片处理功能支持处理上传至OSS的图片文件,本文主要介绍如何进行图片缩放。 说明: 图片处理支持的格式:jpg、png、bmp、gif、webp、tiff。 图片缩放参数 操作名称:resize 指定宽高缩放 名称描述取值范围 m 指定缩略的模式: - lfit:等比缩放,限 阅读全文
posted @ 2019-11-01 10:19 陌路×难飞 阅读(1429) 评论(0) 推荐(0) 编辑
摘要: 1.从网络中下载文件 2.从本地中下载文件 阅读全文
posted @ 2019-10-31 11:41 陌路×难飞 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1:域的大小有限定 2:域不能完美的匹配中间文件 3:域只能显示单行居中,或多行向上居中。无法做到多行格式下 单行垂直居中问题。 其他暂定。 ps:域表示文本域 阅读全文
posted @ 2019-10-29 16:04 陌路×难飞 阅读(619) 评论(0) 推荐(0) 编辑
摘要: 具体方法请看链接: https://www.fangzhipeng.com/springcloud/2018/08/02/sc-f2-ribbon.html 阅读全文
posted @ 2019-07-19 12:08 陌路×难飞 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 在pom文件中添加如下内容即可 阅读全文
posted @ 2019-07-19 11:17 陌路×难飞 阅读(456) 评论(0) 推荐(0) 编辑