Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions mybatis-spring-boot-autoconfigure/src/site/xdoc/index.xml.vm
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public class CityDao {
<tbody>
<tr>
<td>
config
config-location
</td>
<td>
MyBatis xml config file (optional)
Expand Down Expand Up @@ -235,7 +235,22 @@ public class CityDao {
</tbody>
</table>

</subsection>

<p>
In MyBatis-Spring-Boot-Starter 1.1.0 or later, you can configure the <code>org.apache.ibatis.session.Configuration</code> using the <code>application.properties</code>.
The property prefix is <code>mybatis.configuration</code>. About available properties see the <a href="http://www.mybatis.org/mybatis-3/configuration.html#settings">MyBatis reference page</a>.
</p>
<p>Configuration Example:</p>

<source>
mybatis.configuration.map-underscore-to-camel-case=true
mybatis.configuration.default-statement-timeout=30
mybatis.configuration.default-fetch-size=100
</source>

<p><span class="label important">NOTE</span> This feature (<code>mybatis.configuration.*</code>) cannot use at the same time with the MyBatis xml config file (<code>mybatis.config-location</code>).</p>

</subsection>

<subsection name="Running Samples">
<p>The project provides two samples so you play and experiment with them:</p>
Expand Down