WEB开发基本都是MVC分层,不过框架间可能还有更细的粒度分层php
controller
service
modelspring
其余: 我的喜欢再加一个Module,放一些公共的模块类,好比Tree.php 树结构类springboot
controller
repositories
XXXRepository 业务逻辑
XXXRepositoryInterface 接口
modelapp
其余: middleware框架
controller
service
XXXServiceImpl 业务逻辑
XXXService 接口
mapper接口
实际每一个项目分层各类各样,尤为springboot的,各类pojo,dao等等概念开发