2
我将消息发布到Amazon SQS队列。在启动时,我在日志中收到以下警告。亚马逊SQS传统配置文件格式警告
[http-nio-9090-exec-2][BasicProfileConfigLoader] The legacy profile format
requires the 'profile ' prefix before the profile name. The latest code does
not require such prefix, and will consider it as part of the profile name.
Please remove the prefix if you are seeing this warning.
我使用Amazon SQS以下版本与Maven:
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-sqs</artifactId>
<version>1.11.125</version>
</dependency>
我怎样才能摆脱这种警告?
这解决了这个问题。通过从我的aws配置文件中删除“profile”一词,它从我的日志中删除了警告。在我的Windows 10机器上,aws配置位于C:\ Users \ MyName \ .aws \ config。 –