Home > Back-end >  SSM framework why every query the database to Creating a new SqlSession
SSM framework why every query the database to Creating a new SqlSession

Time:12-04

Print SQL log found yao time query to
Creating a new SqlSession
.
Closing non transactional SqlSession [org. Apache. Ibatis. Session. Defaults. DefaultSqlSession @ 360 d5d9f]

CodePudding user response:

You here in normal operation, others a abnormal operation error, cause you here also rolled back, what would you do? Carrying 40 meters broadsword such online?

CodePudding user response:

Why not, so write code, this is not thread-safe, and of course have to new.

CodePudding user response:

Creating a new SqlSession is to check whether the cache and conforms to the data query conditions, has just returned directly, without library in the cache and back
  • Related