java - context:component-scan" is not bound -


am new spring , know question has been asked many times, had ask again.

i guess,i have done appropriate namespace declarations, still facing error "the prefix "context" element "context:component-scan" not bound." there similar question here, dint answer

here xml document, namespace not correct ?

<?xml version="1.0" encoding="utf-8"?> <beans xmlns="http://www.springframework.org/schema/beans"     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-3.0.xsd     http://www.springframework.org/schema/context/spring-context-3.0.xsd">        <bean id="point1" class="org.sri.proj.point">         <property name="x" value="0" />         <property name="y" value="0" />     </bean>      <bean id="point2" class="org.sri.proj.point">         <property name="x" value="10" />         <property name="y" value="10" />     </bean>      <context:component-scan base-package="org.sri.proj"/>  </beans> 

add context namespace declaration beans tag definition in application context file

<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"     xsi:schemalocation="http://www.springframework.org/schema/beans     http://www.springframework.org/schema/beans/spring-beans-3.0.xsd     http://www.springframework.org/schema/context     http://www.springframework.org/schema/context/spring-context-3.0.xsd">   

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -