Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services SpringCloudAWS无法将文件放入S3_Amazon Web Services_Amazon S3_Amazon Ec2_Spring Boot_Spring Cloud - Fatal编程技术网

Amazon web services SpringCloudAWS无法将文件放入S3

Amazon web services SpringCloudAWS无法将文件放入S3,amazon-web-services,amazon-s3,amazon-ec2,spring-boot,spring-cloud,Amazon Web Services,Amazon S3,Amazon Ec2,Spring Boot,Spring Cloud,我有一个应用程序可以将文件从本地上传到aws S3,但当我将应用程序上传到Elastic Beanstalk并尝试上传文件时,应用程序失败,并返回一个错误,文本413请求实体太大。我的应用程序使用Spring Boot和Spring cloud,我的应用程序属性为: cloud: aws: credentials: accessKey: 'myaccesskey' secretKey: 'mysecretkey' instanceProfile: true region:

我有一个应用程序可以将文件从本地上传到aws S3,但当我将应用程序上传到Elastic Beanstalk并尝试上传文件时,应用程序失败,并返回一个错误,文本413请求实体太大。我的应用程序使用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'

有人知道这个问题吗?

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


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

我刚刚解决了这个问题,检查了我的spring boot应用程序,发现一个错误,即我多次将文件发送到服务器。