How to add remote repository in Maven
Not every library is stored in the Maven Central Repository, some libraries are only available in Java.net or JBoss repository (remote repository). This article will show how to add some…
Where is Maven Central Repository?
By default, Maven will get project dependencies from Maven Local Repository, if it is not found, Maven will get it from the Maven Central Repository. (1) - Maven Central Repository…
Where is Maven local repository?
By default, Maven local repository is defaulted to ${user.home}/.m2/repository folder. Unix/Mac OS X – ~/.m2/repository . Windows – C:\Users\{your-username}\.m2\repository . When we compile a Maven project, Maven will download all…
How to include custom library into maven local repository?
For Java libraries that are not available in the Maven Central or other Maven repositories, we need to install it into our Maven Local repository in order to use it…
Connect to MySQL with JDBC driver
A JDBC example to show you how to connect to a MySQL database with a JDBC driver. Tested with:Java 8, MySQL 5.7, MySQL JDBC driver mysql-connector-java:8.0.16
Connect to PostgreSQL with JDBC driver
A JDBC example to show you how to connect to a PostgreSQL database with a JDBC driver. Tested with:Java 8, PostgreSQL 11, PostgreSQL JDBC driver 42.2.5
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
This is caused by the requested SID doesn’t exist in {ORACLE_HOME}/network/admin/tnsnames.ora . Tested with Oracle database 19c with ojdbc8.jar
Maven – How to create a multi module project
In this tutorial, we will show you how to use Maven to manage a Multi-module project containing four modules. Password module – Interface only. Password md5 module – Password module…
Connect to Oracle DB via JDBC driver
A JDBC example to show you how to connect to a Oracle database with a JDBC driver. Tested with:Java 8, Oracle database 19c, Oracle JDBC driver for Java 8, ojdbc8.jar
Spring Boot JDBC + MySQL + HikariCP example
In this article, we will show you how to create a Spring Boot JDBC application + MySQL and HikariCP. Tools used in this article :Spring Boot 1.5.1.RELEASE, MySQL 5.7.x, HikariCP…