# spring-boot **Repository Path**: cc-chen-cong/spring-boot ## Basic Information - **Project Name**: spring-boot - **Description**: spring-boot练习 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-05-03 - **Last Updated**: 2022-05-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SpringBoot 项目分层(数据接口) ## 1)表示层(也叫控制层) 主要任务是拦截并处理请求。表示层代码通常在 controller 包下。 ## 2)业务层 业务层代码通常在 service 包下。 service 下会有个名为 impl 的子包,里面放置 service 层接口的实现类。 实现类类名规范:接口名后面加Impl ## 3)持久层 和数据库交互,最常用的框架是 Mybatis,所以也叫 Mapper 层。 持久层代码通常在 mapper 包下。 ## 4)Client