我想爲我的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服務以及 –