controller层:对外提供接口。 service层:整个产品或模块的业务线,业务在service层实现。 dao层:关注数据库交互,dao层的所有方法和数据设计有密切的关系,索引性能等,不要在dao层随意添加查询方法。