@SuppressWarnings("unchecked")
	private void readXml(String path) {
		try {
			// 根据类路径获取配置文件
			SAXReader saxReader = new SAXReader();
			URL xmlPath = getClass().getClassLoader().getResource(path);
			Document document = saxReader.read(xmlPath);
			Element root = document.getRootElement();
			Iterator<Element> iterator = root.elementIterator("session-factory");
			if (iterator.hasNext()) {
				Element sessionElement = iterator.next();
				iterator = sessionElement.elementIterator("property");
				while (iterator.hasNext()) {
					Element element = iterator.next();
					// 获取属性值
					String name = element.attributeValue("name");
					String value = element.getTextTrim();
					setProperty(name, value);
				}
				iterator = sessionElement.elementIterator("mapping");
				while (iterator.hasNext()) {
					Element element = iterator.next();
					String value = element.attributeValue("resource");
					mappingPaths = new ArrayList<String>();
					mappingPaths.add(value);
				}
			}
		} catch (DocumentException e) {
			e.printStackTrace();
		}
	}