标签:5.x one dep tom property name blog www. exception
注:默认模式是 none
none:
<bean id="obj" class="com.xuzhiwen.spring9.Object1" dependency-check="none"> <property name="name" value="tom" /> </bean>
simple:
<bean id="obj" class="com.xuzhiwen.spring9.Object1" dependency-check="simple"> <property name="name" value="tom" /> </bean>
objects:
<bean id="obj" class="com.xuzhiwen.spring9.Object1" dependency-check="objects"> <property name="name" value="tom" /> </bean>
all:
<bean id="obj" class="com.xuzhiwen.spring9.Object1" dependency-check="all"> <property name="name" value="tom" /> </bean>
全局默认的依赖检查:
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd" default-dependency-check="all">
</beans>
标签:5.x one dep tom property name blog www. exception
原文地址:http://www.cnblogs.com/beibidewomen/p/7411550.html