@@ -1541,7 +1541,7 @@ SqlSessionFactory factory = sqlSessionFactoryBuilder.build(reader, environment,
1541
1541
</p >
1542
1542
1543
1543
<source ><![CDATA[ SqlSessionFactory factory = sqlSessionFactoryBuilder.build(reader);
1544
- SqlSessionFactory factory = sqlSessionFactoryBuilder.build(reader,properties);]]> </source >
1544
+ SqlSessionFactory factory = sqlSessionFactoryBuilder.build(reader, properties);]]> </source >
1545
1545
1546
1546
<p >The environments element defines how the environment is
1547
1547
configured.
@@ -1841,8 +1841,8 @@ public class C3P0DataSourceFactory extends UnpooledDataSourceFactory {
1841
1841
MyBatis is able to execute different statements depending on your database vendor.
1842
1842
The multi-db vendor support is based on the mapped statements <code >databaseId</code > attribute.
1843
1843
MyBatis will load all statements with no <code >databaseId</code > attribute
1844
- or with a <code >databaseId</code > that matches the current one. If case the same statement
1845
- if found with and without the <code >databaseId</code > the latter will be discarded.
1844
+ or with a <code >databaseId</code > that matches the current one. In case the same statement
1845
+ is found with and without the <code >databaseId</code > the latter will be discarded.
1846
1846
To enable the multi vendor support add a <code >databaseIdProvider</code >
1847
1847
to mybatis-config.xml file as follows:
1848
1848
</p >
@@ -1888,7 +1888,7 @@ public class C3P0DataSourceFactory extends UnpooledDataSourceFactory {
1888
1888
statements. But first, we need to tell MyBatis where to find them.
1889
1889
Java doesn’t really provide any good means of auto-discovery in
1890
1890
this regard, so the best way to do it is to simply tell MyBatis
1891
- where to find the mapping files. You can use class path relative
1891
+ where to find the mapping files. You can use classpath relative
1892
1892
resource references, fully qualified url references
1893
1893
(including <code >file:///</code > URLs), class names or package names.
1894
1894
For example:
0 commit comments