Registry / database / spring-boot-starter-jdbc

spring-boot-starter-jdbc

JSON →
library4.0.6javamavenunverified

Starter for using JDBC with the HikariCP connection pool in Spring Boot applications.

<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> <version>4.0.6</version> </dependency>
INSTALL
IMPORT
SIG · SPRING-BOOT-STARTE
S
spring-boot-starter-jdbc
databasejavav4.0.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JdbcTemplate
org.springframework.jdbc.core.JdbcTemplate

Executes a simple SQL query using JdbcTemplate.

import org.springframework.jdbc.core.JdbcTemplate; import javax.sql.DataSource; public class Example { private JdbcTemplate jdbcTemplate; public Example(DataSource dataSource) { this.jdbcTemplate = new JdbcTemplate(dataSource); } public void query() { String result = jdbcTemplate.queryForObject("SELECT 'Hello'", String.class); System.out.println(result); } }
Debug
Known issues
gotchaHikariCP configuration properties changed in Spring Boot 2.x vs 3.x
fix
Use spring.datasource.hikari.* properties consistently with your Spring Boot version.
affects: >=2.0.0
Upgrade
Version history
4.0.6latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Meta
2
Resources
spring-boot-starter-jdbc — mvn dependency:get spring-boot-starter-jdbc · libregistry