spring.xml <context:component-scan> 包含了<context:annotation-config/> 所以<context:annotation-config/> 不用写
springmvc.xml <mvc:annotation-driven ><context:component-scan>都需要,<mvc:annotation-driven >需要在<context:component-scan>前面
spring.xml <context:component-scan> 包含了<context:annotation-config/> 所以<context:annotation-config/> 不用写
springmvc.xml <mvc:annotation-driven ><context:component-scan>都需要,<mvc:annotation-driven >需要在<context:component-scan>前面