Skip to content

Commit dc33de7

Browse files
committed
Minor update to the mybatis:scan docs related to issue #4
1 parent bd8636b commit dc33de7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/site/xdoc/mappers.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@
175175

176176
<p>
177177
Notice that there is no need to specify a <code>SqlSessionFactory</code> or
178-
<code>SqlSessionTemplate</code> because the <code>&lt;mybatis:scan/&gt;</code>
179-
will create <code>MapperFactoryBean</code>s that can be autowired. But if you are
180-
using more than one <code>DataSource</code> autowire may not work for you.
178+
<code>SqlSessionTemplate</code> as an attribute in the <code>&lt;mybatis:scan/&gt;</code>
179+
element because it will create <code>MapperFactoryBean</code>s that can be autowired.
180+
But if you are using more than one <code>DataSource</code> autowire may not work for you.
181181
In this case you can use the <code>factory-ref</code> or
182182
<code>template-ref</code> attributes to set the right bean name to use.
183183
</p>

0 commit comments

Comments
 (0)