diff --git a/mybatis-spring-boot-autoconfigure/src/site/xdoc/index.xml.vm b/mybatis-spring-boot-autoconfigure/src/site/xdoc/index.xml.vm index 6455fbca..2f08fa92 100644 --- a/mybatis-spring-boot-autoconfigure/src/site/xdoc/index.xml.vm +++ b/mybatis-spring-boot-autoconfigure/src/site/xdoc/index.xml.vm @@ -194,7 +194,7 @@ public class CityDao { - config + config-location MyBatis xml config file (optional) @@ -235,7 +235,22 @@ public class CityDao { - + +

+ In MyBatis-Spring-Boot-Starter 1.1.0 or later, you can configure the org.apache.ibatis.session.Configuration using the application.properties. + The property prefix is mybatis.configuration. About available properties see the MyBatis reference page. +

+

Configuration Example:

+ + +mybatis.configuration.map-underscore-to-camel-case=true +mybatis.configuration.default-statement-timeout=30 +mybatis.configuration.default-fetch-size=100 + + +

NOTE This feature (mybatis.configuration.*) cannot use at the same time with the MyBatis xml config file (mybatis.config-location).

+ +

The project provides two samples so you play and experiment with them: