File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 175
175
176
176
<p >
177
177
Notice that there is no need to specify a <code >SqlSessionFactory</code > or
178
- <code >SqlSessionTemplate</code > because the <code >< mybatis:scan/> </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 >< mybatis:scan/> </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.
181
181
In this case you can use the <code >factory-ref</code > or
182
182
<code >template-ref</code > attributes to set the right bean name to use.
183
183
</p >
You can’t perform that action at this time.
0 commit comments