@Autowired DataSource ds;
connection = ds.getConnection(); tring dbName = connection.getCatalog(); connection.close();