HikariCP - Hello World!

Hello, hello, hello!

pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                             http://maven.apache.org/maven-v4_0_0.xsd">
 
    <modelVersion>4.0.0</modelVersion>
 
    <groupId>biz.tugay</groupId>
    <artifactId>bonecp-hello-world</artifactId>
    <packaging>jar</packaging>
 
    <version>1.0-SNAPSHOT</version>
 
    <name>bonecp-hello-world</name>
    <url>http://www.tugay.biz</url>
 
    <dependencies>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>5.1.39</version>
        </dependency>
        <dependency>
            <groupId>com.zaxxer</groupId>
            <artifactId>HikariCP-java7</artifactId>
            <version>2.4.8</version>
        </dependency>
    </dependencies>
    <build>
        <finalName>bonecp-hello-world</finalName>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>1.2.1</version>
                <configuration>
                    <mainClass>biz.tugay.bonecp.TestClass</mainClass>
                </configuration>
            </plugin>
        </plugins>
    </build>
 
    <properties>
        <maven.compiler.source>1.7</maven.compiler.source>
        <maven.compiler.target>1.7</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
 
</project>

TestClass.java
package biz.tugay.bonecp;
 
import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource;
 
import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
 
/**
 * User: Koray Tugay (koray@tugay.biz)
 * Date: 9/10/2016
 * Time: 11:11 AM
 */
public class TestClass {
 
    public static void main(String[] args) throws Exception {
        final HikariConfig config = new HikariConfig();
        config.setJdbcUrl("jdbc:mysql://sql7.freemysqlhosting.net:3306/sql7134711");
        config.setUsername("sql7134711");
        config.setPassword("Da9H7mmYFk");
 
        final DataSource dataSource = new HikariDataSource(config);
        final Connection connection = dataSource.getConnection();
 
        final Statement statement = connection.createStatement();
        final ResultSet resultSet = statement.executeQuery("SELECT * FROM test");
 
        while (resultSet.next()) {
            final String string = resultSet.getString("DATA");
            System.out.println(string);
        }
 
        connection.close();
    }
}