try-with-resources ステートメント ブロックを使用すると、InputStream を自動的に閉じることができます

NoSuchKey

おすすめ

転載: blog.csdn.net/weixin_37646636/article/details/132438712