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 53
53
SqlSessionFactory. A SqlSessionFactory instance can be acquired by
54
54
using the SqlSessionFactoryBuilder. SqlSessionFactoryBuilder can
55
55
build a SqlSessionFactory instance from an XML configuration file,
56
- of from a custom prepared instance of the Configuration class.
56
+ or from a custom prepared instance of the Configuration class.
57
57
</p >
58
58
<p >
59
59
Building a SqlSessionFactory instance from an XML file is very
@@ -161,7 +161,7 @@ SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(confi
161
161
SQL commands against
162
162
the database. You can execute mapped SQL statements directly against
163
163
the SqlSession instance. For
164
- exmaple :
164
+ example :
165
165
</p >
166
166
<source ><![CDATA[ SqlSession session = sqlSessionFactory.openSession();
167
167
try {
@@ -358,7 +358,7 @@ public interface BlogMapper {
358
358
the best scope is request or method scope. Never keep references to
359
359
a SqlSession instance in a static field or even an instance field
360
360
of a class. Never keep references to a SqlSession in any sort of
361
- managed scope, such as HttpSession of of the Servlet framework. If
361
+ managed scope, such as HttpSession of the Servlet framework. If
362
362
you're using a web framework of any sort, consider the SqlSession
363
363
to follow a similar scope to that of an HTTP request. In other
364
364
words, upon receiving an HTTP request, you can open a SqlSession,
You can’t perform that action at this time.
0 commit comments