List<Class> entityClassList = annotationFilter.getClassList();
try {
LOGGER.info("查看是否建表....");
for (Class clazz : entityClassList) {
DocViewerJdbcSupport support = (DocViewerJdbcSupport) clazz.newInstance();
boolean exist = support.hasTable();
String tableName = support.getTableName();
LOGGER.info("表[" + tableName + "]" + (exist ? "" : "不") + "存在");
if (!exist) {
LOGGER.info("创建表[" + tableName + "]");
support.createTable();
}
}
} catch (NamingException e) {
LOGGER.error(e);
} catch (SQLException e) {