context标签

<context:component-scan base-package=”需要扫描的注解的包名”/>
Spring配置注解扫描