You can try p6spy .
This is not exactly a property of the Ibatis property for viewing generated SQL queries. p6spy is a kind of library that you can easily connect to your Java application.
It registers you the generated sql and also resultSet (which is excellent, actually). I used problem tracking in dynamic queries. He prints it in a log file.
This mkyong blog can give you the opportunity to integrate it with your Ibatis. (mkyong-blog-fan :))
source share