December 2019
Intermediate to advanced
314 pages
6h 51m
English
Database connections are made through Quarkus' main configuration file (application.properties), which needs, at the very least, the JDBC settings for the database. We will be using PostgreSQL as storage so that the JDBC URL and driver comply with PostgreSQL JDBC's specifications. The following configuration will be used to access the quarkusdb database, which uses the quarkus/quarkus credentials:
quarkus.datasource.url=jdbc:postgresql://${POSTGRESQL_SERVICE_HOST:localhost}:${POSTGRESQL_SERVICE_PORT:5432}/quarkusdbquarkus.datasource.driver=org.postgresql.Driverquarkus.datasource.username=quarkusquarkus.datasource.password=quarkus
Read now
Unlock full access