使用ClassPathXmlApplicationContext加载XML.

		try (ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(
				"application-context.xml")) {
			XMLComponentDAO bean1 = applicationContext.getBean(XMLComponentDAO.class);
			XMLComponentDAO bean2 = applicationContext.getBean(XMLComponentDAO.class);
			LOGGER.info("{}", bean1);
			LOGGER.info("{}", bean1.getJdbcConnection());

			LOGGER.info("{}", bean2);
			LOGGER.info("{}", bean2.getJdbcConnection());
		}