7.2. 依存関係
Red Hat build of Camel Spring Boot で Agroal を使用する場合は、必要な依存関係を pom.xml に追加します。
-
camel-spring-boot-starter: Camel と Spring Boot をシームレスに統合する場合。 -
camel-jdbc-starter: Camel JDBC コンポーネントを使用している場合。 -
agroal-spring-boot-starter: Agroal と Spring Boot を統合する場合。 - データベースドライバー (例: postgresql、mysql)。
依存関係
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-jdbc-starter</artifactId>
</dependency>
<dependency>
<groupId>io.agroal</groupId>
<artifactId>agroal-spring-boot-starter</artifactId>
</dependency>
<!-- Replace with your database driver -->
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
</dependency>