The connection and function of controller, service layer, dao layer and logics layer in web framework.

has not quite understood the concepts of controller, service layer, dao layer and logic layer, and how to use them and why to use them in this way

Feb.28,2021

tell me the distribution of individuals currently in use

Controller: accepts Web requests, distributes and invokes different logic or services to complete a task, returns data
service: does some service Api interface related code
dao: deals with database (adds, deletes and modifies tables)
logic: 's own business logic

PC
  1:,controller,controler,
  2:,Controllercontollersql,,,,Controller,,,,dao
  3:,,,,PC->->,logic(logicdao),RegisterLogic,,, new RegisterLogic()->register();
  4:,,,,,,,service
  
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35f31-2bfe0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35f31-2bfe0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?