https://github.com/mybatis/mybatis-3/blob/master/src/main/java/org/apache/ibatis/session/SqlSessionManager.java#L346-L366
During ide breakpoint debugging, the tostring()
method is called because the IDE will display the value of the method parameter proxy, which may lead to the creation of Sqlsession
Comment From: harawata
Hello @brucelwl ,
Bad things happen if you use IDE incorrectly and we don't add extra code for that.
IDE wouldn't invoke toString()
unless you click the variable or something.
Please be careful. :)