Installation
xxxxxx
Building SqlSessionFactory from XML
A SqlSessionFactory instance can be acquired by using the SqlSessionFactoryBuilder.
Building SqlSessionFactory without XML
xxxxxx
Acquiring a SqlSession from SqlSessionFactory
xxxxxx
Exploring Mapped SQL Statements
xxxxxx
Scope and Lifecycle
It's very important to understand the various scopes and lifecycles classes we've discussed so far. Using them incorrectly can cause severe concurrency problems.
SqlSessionFactoryBuilder
The best scope is method scope.
SqlSessionFactory
The best scope is application scope.
SqlSession
The best scope is request or method scope.
Mapper Instances
The best scope is method scope.