spring容器是springmvc的父容器
本着父容器不可访问子容器中父容器没有的内容,子容器可以访问父容器中有的内容,
所以在配置扫描包的时候,spring容器可以扫描到dao,service,但不可以扫描到controller
springmvc容器可以扫描到dao,service,还有controller