![]2CBAD3$}}7Y~1~U)PXV9P.png

    分层的目的是为了解耦。解耦就是为了降低代码的耦合度。方便项目后期的维护和升级。

    web 层 com.atguigu.web/servlet/controller
    service 层 com.atguigu.service Service 接口包
    com.atguigu.service.impl Service 接口实现类
    dao 持久层 com.atguigu.dao Dao 接口包
    com.atguigu.dao.impl Dao 接口实现类
    实体 bean 对象 com.atguigu.pojo/entity/domain/bean JavaBean 类
    测试包 com.atguigu.test/junit
    工具类 com.atguigu.util

    搭建书城项目开发环境: