06 2021 档案
摘要:写的全面,转载一下:https://segmentfault.com/a/1190000039370475 依赖修改 <dependency> <groupId>io.minio</groupId> <artifactId>minio</artifactId> <version>8.0.3</ver
阅读全文
摘要:网上的写法,都有点不太一样。 首先,看一下我的gateway版本 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-gateway</artifactId> <vers
阅读全文
摘要:具体请参考:https://smart-doc-group.github.io/#/zh-cn/start/quickstart 众所周知(真不是人云亦云) swagger强大吗?强大的。但是代码侵入性太强了! japidocs ,没有代码入侵问题,也很好! 但是有个bug!没有办法传入接口泛型对象
阅读全文
摘要:一般来说,你点击share后,是这样的。 它会带上很长一串签名。 如果想直接通过 http://localhost:9090/myBucket/1.png 访问。 只需要: 1 选择 bucket 2 选择 edit policy 3 prefix=* Read and Write 就可以了
阅读全文
摘要:POM 如果版本有问题,就参考这个:http://bytedeco.org/download/ <!-- ffmpeg --> <dependency> <groupId>org.bytedeco</groupId> <artifactId>javacv-platform</artifactId>
阅读全文
摘要:通过@RestControllerAdvice来处理。 @RestControllerAdvice public class GlobalExceptionAdvice { private final Logger logger = LoggerFactory.getLogger(GlobalExc
阅读全文
摘要:MultipartFile 转 File public File M2F(MultipartFile file) throws Exception { File f=File.createTempFile(UUID.randomUUID().toString(), "." + FilenameUti
阅读全文
摘要:一,上传图片接口 微服务:web-common 这个接口提供给feign 来RPC调用 @RequestMapping(value = "upload", method = RequestMethod.POST) public ApiResult<FileVO> upload(HttpServlet
阅读全文
摘要:一,被调用方 web-test spring: application: name: web-test 二,web-test准备接口 package com.tenyears.webTest.controller; import org.springframework.beans.factory.a
阅读全文
摘要:报错:Could not resolve placeholder 'xxx' in value "${xxx}" 使用了网上的解决方案,一直没解决。 我知道,肯定是某个包有问题。或者说版本冲突。 先看一下我spring版本: <parent> <groupId>org.springframework
阅读全文
摘要:添加 <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-bootstrap</artifactId> </dependency> </de
阅读全文
摘要:一,设置headers KEY:Content-Type VALUE:multipart/form-data 二,设置Body 1 Key设置名为file(这个很重要) 2 File类型选择 File 3 Value上传图片 (图片需要放到Postman的file下!例如我的:C:\Users\xx
阅读全文
摘要:POM <dependency> <groupId>io.minio</groupId> <artifactId>minio</artifactId> <version>8.2.1</version> </dependency> 配置文件 #minio 文件服务器配置 minio: hostUrl:
阅读全文
摘要:总结下碰到的BUG,之前遇到忘记记录下来,导致又进行了重复无用的搜索定位解决BUG操作。 问题:Non-resolvable parent POM for com.alili:base-model:[unknown-version]: Failure to find com.alili:parent
阅读全文
摘要:转载:https://www.cnblogs.com/q149072205/p/12851667.html 1.下载安装地址(我下的是windows版本):https://min.io/download#/windows 2.新建一个目录存放minio文件,我建的文件名叫 D:\minioData,
阅读全文
摘要:转载:https://blog.csdn.net/weixin_38912024/article/details/82383312 1、安装git https://git-scm.com/downloads 2、新建工程 3、创建密钥 a、桌面右键 b、cd ~/.ssh/ 如果提示 “ No
阅读全文
摘要:百思不得其解。。。 按照网上教程,都试过了。 但是总不对。 后来我通过navicat ,监控日志,发现了问题。。。 仔细看! 我传入的Date, 监控的数据: 也别管少了还是多了,反正就是不一样。 那么我们就知道了。 是mysql时区的问题!!! 解决方案: 设置serverTimezone jdb
阅读全文