我是新来的我和春天有我也有定义的bean称为自动装配豆
<bean id="offerpricedao" class="com.impl.OfferPriceDAOImpl" >
<constructor-arg index="0" ref="offerpriceclass"></constructor-arg>
<constructor-arg index="1" ref="myrole"></constructor-arg>
<constructor-arg index="2"><null/></constructor-arg>
</bean>
,我已经定义的每一个其他的bean在我的上下文文件
所以基本上自动装配bean的问题这里这是指.. 这个代码在src主要的Java .. 和SRC主要测试我有它加载该配置文件,在我的测试 我有这样
@ContextConfiguration(locations = { "classpath:Context.xml" })
public class SetOfferPricesTest extends AbstractTestNGSpringContextTests {
@Autowired
IOfferPriceDAO test;
}
有些事情TestNG的测试
和这种自动装配工作正常... 我认为我们应该在我的自动配线工作的配置文件中有这个.. 用这个如何我的自动装配工作..?