SpringMVC + Spring + MyBatis Study Notes: added the SQL printing function for MyBatis (simplified configuration), springmvcmybatis
System: WIN8.1
Database: Oracle 11GR2
Development Tool: MyEclipse 8.6
Framework: Spring3.2.9, SpringMVC3.2.9, and MyBatis3.2.8
1. Copy the following jar package to the lib directory
2. Add the log4j. properties file in the src directory. The content is as follows:
1 # Global logging configuration2 log4j. rootLogger = ERROR, stdout3 # log4j. logger is followed by the Project dao package path, all of which are dao-layer interfaces.4 log4j.logger.com. kickstarter. dao = TRACE5 # Console output...6. log4j. appender. stdout = org. apache. log4j. leleappender7 log4j. appender. stdout. layout = org. apache. log4j. patternLayout8 log4j. appender. stdout. layout. conversionPattern = % 5 p [% t]-% m % n
The configuration is complete. TRACE can also be configured as DEBUG output.