diff --git a/src/site/xdoc/configuration.xml b/src/site/xdoc/configuration.xml index ff751dc4496..7df0b512e82 100644 --- a/src/site/xdoc/configuration.xml +++ b/src/site/xdoc/configuration.xml @@ -1534,14 +1534,14 @@ public class ExamplePlugin implements Interceptor {

+SqlSessionFactory factory = sqlSessionFactoryBuilder.build(reader, environment, properties);]]>

If the environment is omitted, then the default environment is loaded, as follows:

+SqlSessionFactory factory = sqlSessionFactoryBuilder.build(reader, properties);]]>

The environments element defines how the environment is configured. @@ -1841,8 +1841,8 @@ public class C3P0DataSourceFactory extends UnpooledDataSourceFactory { MyBatis is able to execute different statements depending on your database vendor. The multi-db vendor support is based on the mapped statements databaseId attribute. MyBatis will load all statements with no databaseId attribute - or with a databaseId that matches the current one. If case the same statement - if found with and without the databaseId the latter will be discarded. + or with a databaseId that matches the current one. In case the same statement + is found with and without the databaseId the latter will be discarded. To enable the multi vendor support add a databaseIdProvider to mybatis-config.xml file as follows:

@@ -1888,7 +1888,7 @@ public class C3P0DataSourceFactory extends UnpooledDataSourceFactory { statements. But first, we need to tell MyBatis where to find them. Java doesn’t really provide any good means of auto-discovery in this regard, so the best way to do it is to simply tell MyBatis - where to find the mapping files. You can use class path relative + where to find the mapping files. You can use classpath relative resource references, fully qualified url references (including file:/// URLs), class names or package names. For example: diff --git a/src/site/xdoc/java-api.xml b/src/site/xdoc/java-api.xml index 1ba6122558d..13a47ec537f 100644 --- a/src/site/xdoc/java-api.xml +++ b/src/site/xdoc/java-api.xml @@ -146,7 +146,7 @@ SqlSessionFactory factory = builder.build(configuration);

Now you have a SqlSessionFactory that can be used to create SqlSession instances.

SqlSessionFactory

-

SqlSessionFactory has six methods that are used to create SqlSessionInstances. In general, the decisions you'll be making when selecting one of these methods are:

+

SqlSessionFactory has six methods that are used to create SqlSession instances. In general, the decisions you'll be making when selecting one of these methods are: