img
Figure 11-1. Maven dependencies for Spring with MyBatis
To have MyBatis display all the SQL queries fired to the database, we need to turn on the DEBUG log
level. Let's put the log4j properties file into the folder src/main/resources with the root logger level set to
DEBUG. Listing 11-1 shows the log4j.properties file content.
Note In STS, after a Spring template project is created, STS will generate a log4j.properties file in the
folder src/test/resources. You can simply move the file into the folder src/main/resources and modify it, or
you can delete the one in src/test/resources and create the log4j.properties file in the
/src/main/resources folder.
Search WWH :
Custom Search
Previous Page
Spring Framework 3 Topic Index
Next Page
Spring Framework 3 Bookmarks
Home