181.5. Spring Boot Auto-Configuration
组件支持 6 个选项,它们如下所列。
| 名称 | 描述 | 默认 | 类型 |
|---|---|---|---|
| camel.component.jpa.enabled | 启用 jpa 组件 | true | 布尔值 |
| camel.component.jpa.entity-manager-factory | 使用 EntityManagerFactory。强烈建议您进行配置。选项是一个 javax.persistence.EntityManagerFactory 类型。 | 字符串 | |
| camel.component.jpa.join-transaction | camel-jpa 组件默认加入事务。您可以使用这个选项关闭此选项,例如,如果您使用 LOCAL_RESOURCE 并加入事务无法与您的 JPA 供应商一起工作。也可以在 JpaComponent 上全局设置此选项,而不必在所有端点上设置它。 | true | 布尔值 |
| camel.component.jpa.resolve-property-placeholders | 启动时,组件是否应自行解析属性占位符。只有 String 类型的属性才能使用属性占位符。 | true | 布尔值 |
| camel.component.jpa.shared-entity-manager | 是否将 Spring 的 SharedEntityManager 用于消费者/生产器。在大多数情况下,joinTransaction 应该设置为 false,因为这不是 EXTENDED EntityManager。 | false | 布尔值 |
| camel.component.jpa.transaction-manager | 使用 PlatformTransactionManager 管理事务。选项是一个 org.springframework.transaction.PlatformTransactionManager 类型。 | 字符串 |