ストラテジ パターン + ファクトリ パターンを使用して、コード内の過剰な if-else を削除します。

NoSuchKey

おすすめ

転載: blog.csdn.net/whzhaochao/article/details/116933383