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.

相关文章:

  • 2022-03-05
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2021-04-17
  • 2021-09-23
  • 2021-08-18
  • 2021-05-05
猜你喜欢
  • 2021-10-05
  • 2022-01-06
  • 2022-01-17
  • 2022-01-14
  • 2021-07-12
  • 2021-11-03
  • 2022-01-04
相关资源
相似解决方案