第 131 章 Spring JDBC
自 Camel 3.10 起
仅支持生成者
Spring JDBC 组件是 JDBC 组件的扩展,具有与 Spring Transaction Manager 集成的一个额外功能。
131.1. 依赖项 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
当在 Red Hat build of Camel Spring Boot 中使用 spring-jdbc 时,使用以下 Maven 依赖项来支持自动配置:
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-spring-jdbc-starter</artifactId>
</dependency>
该版本通过以下方式使用 BOM 指定:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.redhat.camel.springboot.platform</groupId>
<artifactId>camel-spring-boot-bom</artifactId>
<version>${camel-spring-boot-version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>