官网地址:http://www.springframework.org/schema/
eclipse引入:https://blog.youkuaiyun.com/qq_40366738/article/details/105216676
这样spring整合的时候,输入<context 就有提示了
<context:component-scan base-package="com.atguigu" use-default-filters="false">
<!--只扫描控制器。 -->
<context:include-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
</context:component-scan>
本文详细介绍如何在Eclipse中引入Spring框架,实现代码智能提示。通过具体配置<context:component-scan>元素,精确控制组件扫描范围,仅扫描带有@Controller注解的控制器类。
426

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



