private void doUpdateDBConfig(Message<JsonObject> message) {
		String driver = message.body().getString("dbDriver");
		String name = message.body().getString("dbName");
		String host = message.body().getString("dbHost");
		String port = message.body().getString("dbPort");
		String userName = message.body().getString("dbUserName");
		String password = message.body().getString("dbPwd");
		Boolean isInstallExamples = message.body().getBoolean(
				"isInstallExamples");

		try {
			String URL = JDBCHelper.generateURL(host, port);
			if (isInstallExamples) {
				String version = JDBCHelper.getVersion(driver, URL, userName,
						password);
				JsonArray files = getDbConfigFiles();
				boolean flag = false;
				int count = 0;
				for (int i = 0; i < files.size(); i++) {
					String pom = files.get(0);
					flag = XMLHelper.updatePomDBConfig(userName, password,
							name, host, port, version, pom);
					if (flag) {
						count = count + 1;
						System.out.println("count ===>" + files.size());
						System.out.println("count ===>" + count);
						pom = pom.substring(0, pom.lastIndexOf("/"));
						MavenHelper.executeFlyway(pom);
					}
				}
			} else {
				// boolean flag = JDBCHelper.executeCreateDB(driver, URL,
				// userName,
				// password, name);
				URL = JDBCHelper.generateURL(host, port, name);
				boolean flag = XMLHelper.updateDBConfig(userName, password,
						name, driver, URL, dbConfigPath);
				System.out.println("update db config result --->" + flag);
				if (flag) {
					sendOK(message);
				} else {
					sendError(message, "修改数据库信息出错");
				}
			}
		} catch (XPathExpressionException | ParserConfigurationException
				| SAXException | IOException | TransformerException e) {
			sendError(message, e.getMessage());
			logger.error(e.getMessage(), e);
		} catch (ClassNotFoundException e) {
			sendError(message, e.getMessage());
			logger.error(e.getMessage(), e);
		} catch (SQLException e) {
			sendError(message, e.getMessage());
			logger.error(e.getMessage(), e);
		}
	}