mvc:annotation-driven与context:component-scan及context:annotation-config的区别

mvc:annotation-driven/与context:component-scan/的区别 context:component-scan/标签是告诉Spring 来扫描指定包下的类,并注册被@Component,@Controller,@Service,@Repository等注解标记的组件。 而mvc:annotation-driven/是告知Spring,咱们启用注解驱动。而后Spri
相关文章
相关标签/搜索