235.3. Spring Boot Auto-Configuration

组件支持 4 个选项,它们如下所列。

Name描述默认类型

camel.component.mybatis.configuration-uri

MyBatis xml 配置文件的位置。默认值为:SqlMapConfig.xml 从 classpath 加载

SqlMapConfig.xml

字符串

camel.component.mybatis.enabled

启用 mybatis 组件

true

布尔值

camel.component.mybatis.resolve-property-placeholders

启动时,组件是否应自行解析属性占位符。只有 String 类型的属性才能使用属性占位符。

true

布尔值

camel.component.mybatis.sql-session-factory

使用 SqlSessionFactory。选项是一个 org.apache.ibatis.session.SqlSessionFactory 类型。

 

字符串