public static void main(String[] args) { //Read the configuration file ApplicationContext ctx = new FileSystemXmlApplicationContext("springconfig.xml");
//Instantiate an object Bean x = (Bean) ctx.getBean("bean");
//Execute the public method of the bean (the test) x.theMethod(); } }