设计模式之单一职责原则 Posted on 2019-12-05 单一职责原则 单一职责原则(single Responsibility Principle) There should no more than one reason for a class to change. This is sometimes hard to say. 在符合业务场景下,尽量的对模块做到:职能单一,行为单一。