난 그냥 질문을봄 XML 문제 2 부
Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [ http://www.springframework.org/schema/aop]
내 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"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
<bean id="audience" class="springaop.Audience">
</bean>
<bean id="sam" class="springaop.Singer">
<property name="id" value="1"></property>
</bean>
<aop:config>
<aop:aspect ref="audience">
<aop:before pointcut="* springaop.Singer.perform(..)"
method="takeSeats"></aop:before>
</aop:aspect>
</aop:config>
</beans>
나는 스프링 3.1을 사용합니다. 0.M2
3.0.5.RELEASE를 사용해보세요. 3.1 마일스톤 빌드는 불안정하고 버그가 있습니다. – skaffman
3.0.5에서 "클래스 경로 리소스 [aop-conf.xml]에서 XML 문서를 구문 분석하는 중 예기치 않은 예외가 발생했습니다. 중첩 예외는 java.lang.NoClassDefFoundError : org/aopalliance/aop/Advice"입니다. –