,,Spring mvc:
<context:component-scan base-package="..."/>
@Controller,@RequestMapping.
,<context:component-scan base-package=""/>Spring,
Spring mvc,?
,,Spring mvc:
<context:component-scan base-package="..."/>
@Controller,@RequestMapping.
,<context:component-scan base-package=""/>Spring,
Spring mvc,?
spring mvc has a default DefaultAnnotationHandlerMapping to handle RequestMapping
spring and spring mvc are two different containers, and spring is the parent container and, spring mvc is the child container. In that case, the child container is the bean, that can access the parent container, and the parent container cannot access the bean of the child container.
so the two framework profiles are configured on demand.
Previous: How does the sql statement query the list of private messages?
Next: How do I migrate the user password field in a laravel project to another language?