customAnnotationUsedForBothComponentScanAndQualifierTests.xml 1.1 KB
Newer Older
A
Arjen Poutsma 已提交
1 2 3 4 5
<?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:context="http://www.springframework.org/schema/context"
		xsi:schemaLocation="http://www.springframework.org/schema/beans
S
Spring Operator 已提交
6
				https://www.springframework.org/schema/beans/spring-beans-2.5.xsd
A
Arjen Poutsma 已提交
7
				http://www.springframework.org/schema/context
S
Spring Operator 已提交
8
				https://www.springframework.org/schema/context/spring-context-2.5.xsd">
A
Arjen Poutsma 已提交
9 10 11 12 13 14 15 16 17 18 19

	<context:component-scan base-package="org.springframework.context.annotation" use-default-filters="false">
		<context:include-filter type="annotation" expression="org.springframework.context.annotation.ComponentScanParserTests$CustomAnnotation"/>
	</context:component-scan>

	<bean class="org.springframework.beans.factory.annotation.CustomAutowireConfigurer">
		<property name="customQualifierTypes">
			<value>org.springframework.context.annotation.ComponentScanParserTests$CustomAnnotation</value>
		</property>
	</bean>

20
	<bean id="testBean" class="org.springframework.context.annotation.ComponentScanParserTests$KustomAnnotationAutowiredBean"/>
A
Arjen Poutsma 已提交
21 22

</beans>