So don't know where is the Tomcat configuration has a problem, forget the great spirit show
<? The XML version="1.0" encoding="utf-8"?>
Description="User database that can be updated and saved"
The factory="org. Apache. Catalina. Users. MemoryUserDatabaseFactory"
The pathname="conf/tomcat - users. XML"/& gt;
ConnectionTimeout="20000"
The redirectPort="8443"
The maxThreads="100"
MinSpareThreads="10"
AcceptCount="1500"
DisableUploadTimeout="true"
URIEncoding="utf-8"
Compression will="on"
CompressionMinSize="1024"
UseSendfile="false"
NoCompressionUserAgents="gozilla, traviata"
CompressibleMimeType="text/HTML, text/XML, text/plain, text/CSS, text/javascript, application/javascript"/& gt;
The pattern="% h % l % u % t & amp; quot; % r& quot; B % s % "/& gt;
The above is the Tomcat server. The XML configuration,
Log4j rootLogger=debug, stdout, file, the info
# # # the log information output to the console # # #
Log4j. Appender. Stdout=org. Apache. Log4j. ConsoleAppender
. # log4j appenders. Stdout. Target=System. Err
Log4j. Appender. Stdout. Layout=org.. Apache log4j. SimpleLayout
. Log4j appenders. Stdout. Threshold=DEBUG
# # the log information output to a file: the log # # #
Log4j. Appender. The file=org. Apache. Log4j. DailyRollingFileAppender
. Log4j appenders. File. The file=F:/log/log
. Log4j appenders. File. Threshold=INFO
. Log4j appenders. File. Append=true
. Log4j appenders. File. DatePattern='_' yyyy - MM - dd '. TXT '
Log4j. Appender. File. Layout=org.. Apache log4j. PatternLayout
Log4j. Appender. File. Layout. ConversionPattern=% d {MM - dd yyyy - HH: MM: ss} % F % p % m % n
# # # part shows the SQL statement
Log4j.logger.com.mybatis=DEBUG
Log4j.logger.com.mybatis.common.jdbc.SimpleDataSource=DEBUG
Log4j.logger.com.mybatis.common.jdbc.ScriptRunner=DEBUG
Log4j.logger.com.mybatis.sqlmap.engine.impl.SqlMapClientDelegate=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
The above is log4j configuration