看到两篇不错的博客 https://quanke.gitbooks.io/design-pattern-java/content/%E5%91%BD%E4%BB%A4%E6%A8%A1%E5%BC%8F-Command%20Pattern.html http://design-patterns.readthedocs.io/zh_CN/latest/behavioral_patterns/command.html