javaEE三层架构介绍
尚硅谷课程资料:
分层的目的是为了解耦合。解耦就是为了降低代码的耦合度/方便项目后期的维护和升级。
(解耦合:减少重复代码,降低模块间的耦合度)
项目创建的的文件目录:
web层: com.atguigu.web/servlet/controller
service层: con.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.utils