且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

找不到awssdk_config_override.json文件-异常AWSSDK

更新时间:2022-06-13 06:21:37

SDK捆绑了一个名为在类路径上查找名为"awssdk_config_override.json"的文件,您可以选择提供该文件来覆盖这些设置-例如,如果要使用与默认情况下SDK选择的身份验证协议不同的身份验证协议.

The SDK comes bundled with a file called awssdk_config_default.json with various bits of trivia about how to find and authenticate to the different AWS services. When loading up, it also looks for a file on the classpath called "awssdk_config_override.json" that you can optionally provide to override these settings - for example if you want to use a different authentication protocol than what the SDK chooses by default.

完全不需要此文件,并且几乎所有SDK用户都对默认配置感到非常满意.如果找不到所需的文件,SDK会在DEBUG级别记录一条消息,以帮助调试发生的问题.可以安全地忽略此消息(以及SDK记录在DEBUG级别的所有其他消息),除非您试图弄清为什么某事不起作用.

This file is not at all required, and almost all users of the SDK will be perfectly happy with the default configuration. The SDK logs a message at the DEBUG level if it can't find the file to help debug what's going wrong if you're expecting it to pick up an override config file but it's not for some reason. This message (and all of the other messages the SDK logs at the DEBUG level) are safe to ignore unless you're trying to figure out why something isn't working.

我绝对建议在部署到生产环境之前关闭DEBUG级别的日志记录-DEBUG日志可能会变得很冗长.

I would definitely recommend turning off DEBUG level logging before deploying to production - the DEBUG logs can get quite verbose.