RestTemplate下载阿里云OSS文件403错误 朋也 当aliyun oss对某个文件设置过期时间访问时,在浏览器里能正常打开,但使用resttemplate下载就一直403,如下图 解决办法非常简单,给请求头设置上 User-Agent 就行了。 发表于:2022-02-24 分 类: java学习笔记 标 签: resttemplate 后一篇:Chrome截图插件Fireshot升级PRO试用版后退回默认版本 前一篇:RestTemplate CRUD 使用示例 Please enable JavaScript to view the comments powered by Disqus.