code: private String fetchDatabaseProductName(DataSource dataSource) throws MetaDataAccessException {
      Connection conn = null;
      try {
        conn = DataSourceUtils.getConnection(dataSource);
        DatabaseMetaData metaData = conn.getMetaData();
        return metaData.getDatabaseProductName();
      } catch (CannotGetJdbcConnectionException ex) {
        throw new MetaDataAccessException("Could not get Connection for extracting meta data", ex);
      } catch (SQLException ex) {
        throw new MetaDataAccessException("Error while extracting DatabaseMetaData", ex);
      } finally {
        DataSourceUtils.releaseConnection(conn, dataSource);
      }
    }
docs: 获取数据库名称
  
  @param dataSource
  @return
  @throws MetaDataAccessException