为嘛要分层?

    如果分了三层,当第三层的接口改了,只需要改第二层的调用代码,而不用改第一层的代码。如果不分层全都粘在一起,比如说展现逻辑和业务逻辑都调用了DAO接口,那么DAO接口变化时,业务逻辑代码和展现逻辑代码都要改了

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.