Why does SpringMVC divide father and son containers and use only one container?

dao, service scan in parent container
web related scan in child container

is this for layering? Or do you have to do this?
is it okay to use only one container?

Apr.27,2022
The controller layer of

spring mvc can inject service or dao because the child container can see the classes injected by the parent container, but cannot inject in service or dao the contents of the controller parent container that cannot be obtained from the child container


springboot. In addition, there may be more than 2

containers in springcloud.
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-1e58b86-454cf.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-1e58b86-454cf.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?