The PostgreSQL JDBC driver is a Java library that enables JDBC applications to connect to PostgreSQL databases. In a Spring Boot application, it supplies database connectivity for repositories and JDBC-backed persistence. section 7.3.1 section 5.4.1
Use the driver when configuring PostgreSQL-backed application features:
- Add the driver as a runtime dependency alongside Spring Data JDBC when a custom server queries PostgreSQL. section 7.3.1
- Supply a DataSource to JDBC components such as JdbcChatMemoryRepository. section 5.4.1
- Select PostgreSQL-specific SQL behavior through PostgresChatMemoryRepositoryDialect when configuring JDBC chat memory. section 5.4.1
Gradle dependency
runtimeOnly 'org.postgresql:postgresql'
