You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/05/15 15:01:18 UTC

[camel] branch camel-3.20.x updated: CAMEL-19352: improve mybatis doc (#10081)

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-3.20.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-3.20.x by this push:
     new cc16bfec271 CAMEL-19352: improve mybatis doc (#10081)
cc16bfec271 is described below

commit cc16bfec2719b6574b788aa73ec7523193ed8cee
Author: Federico Mariani <34...@users.noreply.github.com>
AuthorDate: Mon May 15 17:01:11 2023 +0200

    CAMEL-19352: improve mybatis doc (#10081)
---
 .../src/main/docs/mybatis-component.adoc              | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/components/camel-mybatis/src/main/docs/mybatis-component.adoc b/components/camel-mybatis/src/main/docs/mybatis-component.adoc
index 2abe322014e..240f877f958 100644
--- a/components/camel-mybatis/src/main/docs/mybatis-component.adoc
+++ b/components/camel-mybatis/src/main/docs/mybatis-component.adoc
@@ -337,6 +337,25 @@ usual:
 </camelContext>
 ----
 
+== MyBatis Spring Boot Starter integration
 
+Spring Boot users can use https://mybatis.org/spring-boot-starter/mybatis-spring-boot-autoconfigure/[mybatis-spring-boot-starter] artifact provided by the mybatis team
+
+[source,xml]
+----
+<dependency>
+  <groupId>org.mybatis.spring.boot</groupId>
+  <artifactId>mybatis-spring-boot-starter</artifactId>
+  <version>2.3.0</version>
+</dependency>
+----
+
+in particular AutoConfigured beans from mybatis-spring-boot-starter can be used as follow:
+
+[source,properties]
+----
+#application.properties
+camel.component.mybatis.sql-session-factory=#sqlSessionFactory
+----
 
 include::spring-boot:partial$starter.adoc[]