<context:component-scan base-package="com.xindatai.ibs" use-default-filters="false"> <context:include-filter type="annotation" expression="org.springframework.stereotype.Controller" /> <context:include-filter type="annotation" expression="org.springframework.web.bind.annotation.ControllerAdvice"/> </context:component-scan>
本文介绍了 Spring MVC 中使用 XML 配置进行组件扫描的方法,包括如何指定扫描的基本包及如何通过注解过滤扫描结果。
995

被折叠的 条评论
为什么被折叠?



