
JDBC Tutorial How to Connect to a Database Step by Step
Connect to PostgreSQL with JDBC, run queries and updates with prepared statements, read results safely and manage transactions, in one runnable example.
Everything you need to level up your coding skills.

Connect to PostgreSQL with JDBC, run queries and updates with prepared statements, read results safely and manage transactions, in one runnable example.

Create a Quarkus 3 project, add a REST endpoint with JSON, run it in dev mode and write a test, in about fifteen minutes and with no prior Quarkus knowledge.

Fix Quarkus build failures about unsatisfied or ambiguous CDI dependencies, including unused beans that were removed and libraries missing an index.

How Quarkus extensions run build steps, which configuration is fixed at build time, and what that changes about properties, profiles and library choices.

Use Quarkus dev mode for live reload, the keyboard commands and continuous testing that reruns tests when you save, and know what dev mode cannot reload.

Let Quarkus start a PostgreSQL, Kafka or Redis container in dev mode and tests when no connection is configured, and learn how to pin images and turn it off.

Fix a Quarkus native executable that builds and then fails at runtime with missing classes or methods, by registering classes for reflection correctly.

Why Quarkus starts quickly: it moves annotation scanning, dependency injection wiring and proxy generation from application startup to the build.

JUnit 5 is a Platform, an engine called Jupiter and a Vintage engine for old tests. See how they fit together and why it explains most setup errors.

Add JUnit 5 to a Maven or Gradle project, write a first test, run it from the command line and read the output, in about fifteen minutes.

See when BeforeAll, BeforeEach, AfterEach and AfterAll run, how nested classes and instance lifecycles change that order and how to control test order.

Use assertThrows to check the exception type and message, and assertAll to see every failure at once, with the mistakes that make both pass by accident.
We send one email when a new post is published. No spam.