public DruidPlugin createDruidPlugin() { Prop dbProp = PropKit.use("db.properties"); String db_host = dbProp.get("db_host").trim(); String db_name = dbProp.get("db_name").trim(); String db_user = dbProp.get("db_user").trim(); String db_password = dbProp.get("db_password").trim(); return DbDialectFactory.getDbDialect().createDuidPlugin(db_host, db_name, db_user, db_password); }
private void dbDialectConfig() { String dialect = PropKit.get("jpress_db_dialect"); if (StringUtils.isNotBlank(dialect)) { DbDialectFactory.use(dialect); } }