[转] servlet connection pool code (4)

xiaoxiao2021-03-06  33

# db.properties # mysql driver drivers = org.gjt.mm.mysql.driver

# 数据 数据 t = jdbc: mysql: // localhost: 3306 / testdb # Connection Database TestDB User name testdb.user = root # Connection Database TestDb Password TestDb.Password = root # allows connection Database TestDb's most User quantity testdb.maxconn = 2 ------------------------------------------------------------------------------------------------------- ---------------------- # log4j.properties # Defines two outputs A1 and A2Log4j.RootLogger = Debug, A1, A2 # definition A1 output to the controller Log4j.Appender.a1 = org.apache.log4j.consoleAppender # Defines the layout mode of the A1 log4j.Appender.a1.Layout = org.apache.log4j.patternLayout # Defines the output format of the A1 log4j.Appender.a1.Layout.conversionPattern = % D [% T]%-5P% C -% M% N

# Define A2 output to file log4j.Appender.a2 = org.apache.log4j.rollingfileAppender # definition A2 to output to which file # log4j.Appender.a2.file = c: //log4j/example.loglog4j.Appender.a2 .File = c: //log/Web.log# Defines the maximum length of the output file of the A2 log4j.Appender.a2.maxFileSize = 1000kb # Define A2 backup file log4j.Appender.a2.maxbackupindex = 3 # Definition A2 Layout mode is patternLayoutLog4j.Appender.a2.Layout = org.apache.log4j.patternLayout # definition A2 output format log4j.Appender.a2.Layout.conversionPattern =% D {YYYY-MM-DD HH: mm: ss}: % P% T% C -% M% N

转载请注明原文地址:https://www.9cbs.com/read-62569.html

New Post(0)