我想为我的Spring启动maven应用程序托管在云(Pivotal Web服务)上提供证书,以便能够上传到Amazon S3。然而,每一次我尝试使用获得的凭据:无法检索亚马逊证书
DefaultAWSCredentialsProviderChain credentialProviderChain = new DefaultAWSCredentialsProviderChain();
TransferManager transferManager = new TransferManager(credentialProviderChain.getCredentials());
它说
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception
[Request processing failed; nested exception is com.amazonaws.AmazonClientException: Unable
to load AWS credentials from any provider in the chain] with root cause
2016-01-28T23:55:38.55+0000 [APP/0] OUT com.amazonaws.AmazonClientException:
Unable to load AWS credentials from any provider in the chain
我有点困惑,是否我的凭据应在beans.xml文件或应用程序定义。属性文件。但我已经试过都无济于事。有人能指出我正确的方向吗?
你可以尝试AWS Cognito服务以及 –