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:43 UTC

[camel] branch main updated: CAMEL-19352: improve mybatis doc (#10083)

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 4be7cb2a21a CAMEL-19352: improve mybatis doc (#10083)
4be7cb2a21a is described below

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

    CAMEL-19352: improve mybatis doc (#10083)
---
 .../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 492f2b8b01c..3c427081add 100644
--- a/components/camel-mybatis/src/main/docs/mybatis-component.adoc
+++ b/components/camel-mybatis/src/main/docs/mybatis-component.adoc
@@ -338,6 +338,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>3.0.1</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[]