67,550
社区成员




package test;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.Resource;
import net.xiaxin.spring.qs.Action;
public class SimpleTest {
public void testQuickStart() throws FileNotFoundException {
InputStream is = new FileInputStream("bean.xml");
XmlBeanFactory factory = new XmlBeanFactory((Resource) is);
Action action = (Action) factory.getBean("TheAction");
System.out.println(action.execute("Rod Johnson"));
}
public static void main(String[] args) throws FileNotFoundException {
SimpleTest simpleTest = new SimpleTest();
simpleTest.testQuickStart();
}
}