2017-11-13 11:29
DruidPlugin druidPlugin = new DruidPlugin(
"jdbc:mysql://localhost:3306/erp?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull",
"root",
"1234");
plugins.add(druidPlugin);
ActiveRecordPlugin activeRecordPlugin = new ActiveRecordPlugin(druidPlugin);
activeRecordPlugin.addMapping("user_info","uid",UserBean.class);