标签:tor value domain 构造 username 方法 ref pre class
<bean id="accountDao" class="com.ttpfx.dao.impl.AccountDaoImpl"/>
<bean id="accountService" class="com.ttpfx.service.impl.AccountServiceImpl">
<constructor-arg name="accountDao" ref="accountDao"/>
</bean>
<bean id="accountDao" class="com.ttpfx.dao.impl.AccountDaoImpl"/>
<bean id="accountService" class="com.ttpfx.service.impl.AccountServiceImpl">
<property name="accountDao" ref="accountDao"/>
</bean>
public class Account {
private Integer id;
private String username;
private Date birthday;
}
<bean id="now" class="java.util.Date"/>
<bean id="account" class="com.ttpfx.domain.Account">
<property name="id" value="1"/>
<property name="username" value="张三"/>
<property name="birthday" ref="now"/>
</bean>
标签:tor value domain 构造 username 方法 ref pre class
原文地址:https://www.cnblogs.com/ttpfx/p/14551075.html