作者在 2011-08-25 15:13:13 发布以下内容
import org.springframework.web.*;
public IpText{
public static void main(String args[]){
BeanFactory bf = new ClassPathXmlApplicationContext("applicationContext.xml");
BeanFactory bf = new ClassPathXmlApplicationContext("applicationContext.xml");
Object b = bf.getBeans("Name);
System.out.println(b.toString());
}
}
applicationContext.xml
<beans>
<bean id="" class="" scope="">
<property name="" value=""/>
</bean>
</beans>
//以上是spring的使用步骤 不知道我这正确吗?请各位大侠请教