java - Easiest way to verify MyBatis 3.x caching is working properly -


Greetings! I'm trying to set up a small caching for MyBatis & amp; In the Spring app and their PDF dock, your XML Mapper includes

  & lt; Cache / & gt;  

The settings are as configuration xml files on top:

   & Lt; / Settings & gt;  

Logging with log4j is set to debug, but I see an indication that the cache is working as expected.

I'm not sure what I'm missing here. Thank you in advance

... that was easy:

  log4j Logger.org.apache.ibatis = debug  

log4j.logger.org.apache.ibatis.common.jdbc.SimpleDataSource = debug log4j.logger.org.apache.ibatis.common. Jdbc.ScriptRunner = Debug log4j.logger.org.apache.ibatis.sqlmap.engine.impl.SqlMapClientDelegate = Debug log4j.logger.org.apache.ibatis.cache.decorators.LoggingCache = debug log4j.logger.java.sql.Connection = Debug log4j.logger.java.sql.Statement = debug log4j.logger.java.sql.PreparedStatement = debug log4j.logger.java.sql.ResultSet = debug

... left: if not much . Just can not get caching to work.

I think it's time to switch to something else to see your mailing list and draw your conclusions.


Comments