The prefix "context" for element "context:component-scan" is not bound

原文地址: http://blog.csdn.net/hx_uestc/article/details/7477909

配置spring报扫描时报错:
The prefix "context" for element "context:component-scan" is not bound

解决方法:
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:aop="http://www.springframework.org/schema/aop"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
           http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
           http://www.springframework.org/schema/context
           http://www.springframework.org/schema/context/spring-context-2.5.xsd

http://www.springframework.org/schema/aop  
                                     http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">

猜你喜欢

转载自genwong.iteye.com/blog/2087583
今日推荐