【面试】【Spring常见问题总结】【03】

【常见面试问题总结目录>>>】 2一、自动检测Bean 为了配置自动检测,须要使用<context:component-scan>元素。默认状况下,<context:component-scan>使用构造型注所标注类。这些特殊的注解以下面试 @Component——通用构造型注解,标识该类为Spring组件spring @Controller——标识将该类定义为SpringMVC controll
相关文章
相关标签/搜索