您的位置:首页 > 编程语言 > Java开发

SpringMVC 出现通配符的匹配很全面, 但无法找到元素 'context:component-scan' 的声明。

2018-01-02 09:51 501 查看
  在SpringMVC的框架时,使用过程中,出现了通配符的匹配很全面, 但无法找到元素 'context:component-scan' 的声明 我出现的原因是,在springmvc的配置文件中,

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans.xsd         http://www.springframework.org/schema/context         http://www.springframework.org/schema/context/spring-context.xsd">[/code] 
写错了,我之前是复制了上面的beans,我没有把beans改完。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐