【问题标题】:Spring cloud aws not able to put files in S3Spring Cloud aws 无法将文件放入 S3
【发布时间】:2017-05-11 00:19:33
【问题描述】:

我有一个应用程序可以从我的本地将文件上传到 aws S3,但是当我将应用程序上传到 Elastic Beanstalk 并尝试上传文件时,应用程序失败并返回一个带有文本 413 Request Entity Too 的错误大。我的应用程序使用 Spring Boot 和 Spring Cloud,我的应用程序属性是:

cloud:
   aws:
credentials:
  accessKey: 'myaccesskey'
  secretKey: 'mysecretkey'
  instanceProfile: true
region:
  static: eu-west-1
stack:
  auto: false
amazon:
 s3:
  default-bucket: 'mybucket'

有人知道这个问题吗?

【问题讨论】:

    标签: amazon-web-services amazon-s3 amazon-ec2 spring-boot spring-cloud


    【解决方案1】:

    我认为您的应用程序配置有问题。文件大小大于服务器配置允许的大小。

    查看this 链接,了解如何更改各种服务器的最大请求大小。

    【讨论】:

    • 我刚刚解决了问题检查了我的spring boot应用程序,我遇到了一个错误,我多次将文件发送到服务器。
    猜你喜欢
    • 2015-12-29
    • 1970-01-01
    • 2023-02-07
    • 2018-12-20
    • 1970-01-01
    • 1970-01-01
    • 2017-09-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多