spring 构造器注入
<bean id="s" class="cn.lexed.pojo.Student">
<constructor-arg name="name" value="Tom"></constructor-arg>
<constructor-arg name="age" value="20"></constructor-arg>
<constructor-arg ref="user"></constructor-arg>
</bean>
本文来自博客园,作者:hellowworld!,转载请注明原文链接:https://www.cnblogs.com/zhangsai/p/17772607.html
posted on 2023-10-18 16:06 hellowworld! 阅读(16) 评论(0) 收藏 举报
浙公网安备 33010602011771号