Hlw,
In your case, if you are using a single database, you can use the CDB. If you are using multiple databases, you can use PDBs. As for the JDBC URL, you should use the URL that matches the database you are connecting to. If you are connecting to the CDB, use the CDB URL, and if you are connecting to a specific PDB, use the PDB URL.