程序员笑话
ApplicationContext ctx = new ClassPathXmlApplication("applicationContext.xml"); DataSource ds = (DataSource)ctx.getBean("dataSource");