-
Add the JDBC driver to your project:
- Download the PostgreSQL JDBC driver from here.
- Add the downloaded .jar file to your project as a library.
-
Modify these lines to match your PostgreSQL server information:
DB_USER=username DB_PASSWORD=password DB_URL=jdbc:postgresql://localhost:5432/database_name
and rename the file to config.properties (in configPropertiesExample.properties file)
Compile and execute the Main.java file using your preferred Java development environment.
To watch my video demonstration, you can watch it here.