春が初めてで、この質問が何度も聞かれていることは知っていますが、もう一度尋ねなければなりませんでした.
適切な名前空間宣言を行ったと思いますが、まだエラーに直面し て"The prefix "context" for element "context:component-scan" is not bound."
います
これが私の xml ドキュメントです。名前空間が正しくないということですか?
<?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>